3ed the motion, kuchen is spot on, although i don't think u can pass array's to functions it wouldn't apply since your dialog item variable is global. just make a function or condition that has a parameter of the used dialog item and run a loop in it that checks and matches and returns true of false.
NOTE: i noticed ur using dialog items, be careful about spam click, it will break your game.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I keep including these ugly conditions into my triggers, but I was wondering if there was a way to do:
So that the trigger executes if any of the variables in the array are used.
You could create a custom function
As far as I know!, you can only do this if you take it out of the Conditions section and create a If Then Else within a loop.
I hate it when I have to take it out of the Conditions section, but yeah. You need to break the loop else it may run twice.
EDIT:
Holy crap, I forgot about Conditions Definitions. Definitely use what Kueken531 said.
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
@Kueken531: Go
3ed the motion, kuchen is spot on, although i don't think u can pass array's to functions it wouldn't apply since your dialog item variable is global. just make a function or condition that has a parameter of the used dialog item and run a loop in it that checks and matches and returns true of false.
NOTE: i noticed ur using dialog items, be careful about spam click, it will break your game.