Subject: Jass TriggerAddAction to Make Actions At Runtime Sat Jul 30, 2011 11:50 pm
How would I convert string input into a Jass Trigger using TriggerAddAction?
By that I mean, how would I convert the string type to the function type?
Thanks!
-Oreo
Pat1487 Moderator
Subject: Re: Jass TriggerAddAction to Make Actions At Runtime Sun Jul 31, 2011 12:27 am
What are you trying to do
TriggerAddAction takes a trigger and a function A string is a line of text, where as a function is a bunch of code
Use the function name in TriggerAddAction
Are you trying to make triggers as the map runs You cant do that, at least not directly like you seem to be asking for Just make 2+ functions (or triggers) and use an if statement to pick which runs
The_Chosen_Oreo Corporal
Subject: Re: Jass TriggerAddAction to Make Actions At Runtime Sun Jul 31, 2011 1:13 am
Well.. Is it possible to take an array of strings, and convert it to the code data type?