| 05-15-2004, 12:20 AM | #1 |
I had a person e-mailing me for help with JASS but I'm not a JASS guy the GUI's my programming medium. Anyways heres the problem. Need a tiny bit of help...I'll try to make sense. In JASS I need to make a unique trigger name. Basically I need to create a trigger over and over again but with a number on the end to differentate between them. ie I have a counter (1..n) The way to create a trigger is : set gg_trg_<trigger_name> = CreateTrigger() So how do I use the variable 'counter' in the '<trigger_name>' to produce : trigger1 trigger2 trigger3 for examle. Can you setup an array of triggers? Any help on this would be appreciated... ps The reason I want this is for fading units with a simple call call FadeUnit(<unit_id>, start, stop, time_period) This in itself is not particularly hard, just need a unique trigger for each unit. There is also a million and one uses for this sort of thing. This was sent to me via e-mail I'd gladly give it to you in a PM or you could give me the answer in a PM or just post the answer here ^_^ and I'll e-mail it to him. |
| 05-15-2004, 12:22 AM | #2 |
hows about you look 3 posts down where somebody asked the same exact question: http://www.wc3campaigns.com/showthread.php?t=55421 |
| 05-15-2004, 12:23 AM | #3 |
Thanks sry about that I don't spend that much time in this section since I'm not a JASSer :D . |
