Create a free account to remove all ad content.

Author Topic: [Other] Variable script not working?  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Jakub34

  • Member
  • *
  • Posts: 238
    • View Profile
    • http://www.kongregate.com/games/Coolio_Niato/streamline?acomplete=streaml
  • Xbox: jakub34
Re: Variable script not working?
« Reply #10 on: December 18, 2017, 10:28:01 PM »
Okay so

If
IsVar [Ran:3] [0,1,2]?

IDK exactly but that sounds right

cY Agent 115

  • Sr. Member
  • *
  • Posts: 364
  • Death to trolls on the forums
    • View Profile
  • Xbox: cY Agent 115
  • Steam: cY Agent 115
Re: Variable script not working?
« Reply #11 on: December 21, 2017, 08:07:03 AM »
IDK exactly but that sounds right
no i got it now, i got taught by MrMarooca. He's such a good teacher.

what it is, is:

Var [loot] [Rand:2]

If
IsVar [loot] [=]

Then
Inventory [player] [add] [apple] [1]

ElseIf
IsVar [loot] [=] [1]
Then
Inventory [player] [add] [apple] [2]

ElseIf
IsVar [loot] [=] [2]
Then
Inventory [player] [add] [apple] [3]

Edit: no idea why there's a dot in the way :/