HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting an Array Value in the Event

06-07-2005, 12:01 AM#1
TheImpersonator
Question; Is there any way to detect an array value in an event. For example;

Events;
Time - TimerTorch[1] expires

Actions;
Unit - Create 1 Torch Dummy for Player 1 (Red) at ((Position of UnitRifleman[1]) offset by 60.00 towards (Facing of UnitRifleman[1]) degrees) facing (Facing of UnitRifleman[1]) degrees

Unit - Add a 1.50 second Generic expiration timer to (Last created unit)

Unit - Order (Last created unit) to Move To ((Position of UnitRifleman[1]) offset by 500.00 towards (Facing of UnitRifleman[1]) degrees)

Is it possible to, instead of inserting a [1] in all the array values in the action, is there another function which could replace it because it is necessary to make a seperate trigger for each player to make it multi-insteable sometimes which can be a real pain. I need a non-jass solution!
06-07-2005, 12:11 AM#2
Toast.Theif
not quite sure what you mean, but I think for what you want, you could use for a/b loop
06-07-2005, 11:04 AM#3
-=Emergenzy=-
No you can't detect array variables in the event

but you can create at trigger like this

Event:
Every 1 second

Codition:
If <you variable> equal to 0

Action:
<Your action>
06-08-2005, 07:40 PM#4
mogmiester
no, i had that problem, but i think that perhaps if you put all the timers expiring as the events, and then loop though with integer a and try and find with multiboard expired, and then replaced te 1s with as, then you would be ok
06-08-2005, 09:57 PM#5
Tim.
I agree with Toast. A/B Loops would be best.
06-08-2005, 10:22 PM#6
Vexorian
If I understand your problem correctly, you would just have to use Player number of (Trigggering Player) or Player number of (Owner of (triggering unit)) depending on the event