• Visit Rebornbuddy
  • Pec

    Discussion in 'Wildbuddy Developers' started by satbuster, Jun 7, 2015.

    1. satbuster

      satbuster Member

      Joined:
      Dec 19, 2014
      Messages:
      93
      Likes Received:
      0
      Trophy Points:
      6
      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-
       
    2. Lukov

      Lukov New Member

      Joined:
      Apr 3, 2015
      Messages:
      63
      Likes Received:
      2
      Trophy Points:
      0
      Here's an example.

      Code:
      for i in GameManager.Inventory.Bags.Items:
      Log("Index %d\n%s\n" % (i.Index, i.Name)) 
       
    3. satbuster

      satbuster Member

      Joined:
      Dec 19, 2014
      Messages:
      93
      Likes Received:
      0
      Trophy Points:
      6
      I'm going to cry if that works. I've been experimenting so much already!
       

    Share This Page