What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Pec

satbuster

Member
Joined
Dec 19, 2014
Messages
93
Reaction score
0
Hi,

I have a question about the Python Execute Console.

I can do single line Python-type commands. I'm struggling with anything more complex that spans multiple lines.

e.g. Simple multi-line constructs such as...

Code:
for item in items:
    print item

I've read about IronPython but haven't found any useful hints.


-SB-
 
Here's an example.

Code:
for i in GameManager.Inventory.Bags.Items:
Log("Index %d\n%s\n" % (i.Index, i.Name))
 
I'm going to cry if that works. I've been experimenting so much already!
 
Back
Top