EDIT:r integer A stuff r random numbers?? cuz i use these for random nubmer
i was trying to make fishing for my rpg but it turn out bad...it keeps doing it til it catchs all the fish
this is the trigger my image shack dont work so ill type it....(poor me)
-----------------------------------------------------
events
-unit-a unit uses an item
conditions
-[item-type of [item being manipulated]] equal to fishing rod
actions
-for each [integer a] from 1 to 20, do [actions]
-loop - actions
-if [all conditions are true] then do [then actions] else do [else actions]
-if - conditions
[integer a] equal to 5
-then - actions
hero - create small fish and give it to [hero manipulated item]
game - display to [all players] for 5.00 seconds the text: you could a small fish.
-else - actions
game - display to [all players for 5.00 seconds the text: you failed to catch a fish.
-----------------------------------------------------
ok this is how it goes i have like 5 of these in the same trigger just to make it catch different fish...like integer a equal to 17 equal to true create blue fish in hero invtory.
plz help thx for reading.
i was trying to make fishing for my rpg but it turn out bad...it keeps doing it til it catchs all the fish
this is the trigger my image shack dont work so ill type it....(poor me)
-----------------------------------------------------
events
-unit-a unit uses an item
conditions
-[item-type of [item being manipulated]] equal to fishing rod
actions
-for each [integer a] from 1 to 20, do [actions]
-loop - actions
-if [all conditions are true] then do [then actions] else do [else actions]
-if - conditions
[integer a] equal to 5
-then - actions
hero - create small fish and give it to [hero manipulated item]
game - display to [all players] for 5.00 seconds the text: you could a small fish.
-else - actions
game - display to [all players for 5.00 seconds the text: you failed to catch a fish.
-----------------------------------------------------
ok this is how it goes i have like 5 of these in the same trigger just to make it catch different fish...like integer a equal to 17 equal to true create blue fish in hero invtory.
plz help thx for reading.