Staredit Network

Staredit Network -> UMS Assistance -> Unit Swap Problems
Report, edit, etc...Posted by micro119 on 2006-06-10 at 16:28:12
I'm making a map and its much like diplomacy, and i have lots of triggers already, but when i added this one trigger, a trigger to keep track of the year through gas amount, the triggers for special units etc. stopped working. the trigger for the year was something like this:
Trigger
Players:
¤ Force1
Conditions:
¤ Always();
Actions:
¤ Wait(40000);
¤ SetResources(CurrentPlayer,Add,1,Gas);
¤ PreserveTrigger();

and the unit thing is something like this:
Trigger
Players:
¤ Force1
Conditions:
¤ Bring(Currentplayer,atleast,1,marine,anywhere);
Actions:
¤ movelocation(Special,marine,currentplayer,Anywhere);
¤ Removeunitat(1,marine,currentplayer,Special);
¤ CreateUnit(1,SpecialUnit,Currentplayer,Special);
¤ PreserveTrigger();

This seems right, but in game it will only swap the marine for the special unit every time a DisplayText trigger is fired, its really weird. Help anyone?
Report, edit, etc...Posted by KaboomHahahein on 2006-06-10 at 16:32:12
I most likely has something to do with your long 40 second wait. Just for testing, take out the wait trigger and see if it works. If it does then it is the wait's fault.
Report, edit, etc...Posted by iHaveNoRegrets on 2006-06-10 at 16:51:02
Instead of using waits, use some sort of score or unit going to locations somewhere... Waits are too much of a pain.
Report, edit, etc...Posted by micro119 on 2006-06-10 at 17:43:37
Okay the source of the problem is the Wait(40000); but what solution can there be? i still need gas to add 1 every 60 game seconds...
Report, edit, etc...Posted by KaboomHahahein on 2006-06-10 at 18:50:55
You can use a physical timer. Have a unit walk/fly across a part of the map and make it take about 60 seconds to do so and there is your timer.
Next Page (1)