Staredit Network

Staredit Network -> UMS Assistance -> Custom Triggers?
Report, edit, etc...Posted by JSonicC on 2005-06-13 at 11:33:36
Im fairly good with triggers, but ive never looked into custom triggers and not really sure where to find them, but im looking for one or the other.

First idea would be to create a unit every X seconds for Y seconds

IE, Spawn marine every 2 seconds for 50 seconds

Wich would create 25 marines in total.


The alternative to this would be

Order 1 unit at location to location2 every X seconds.

If anyone can help me with this, or have an ideas, please share
Report, edit, etc...Posted by BeeR_KeG on 2005-06-13 at 11:58:37
You would need about 3 triggers to do this.


null
Trigger
Conditions:
¤ Switch 1 is Set
¤ Unit X has suffered X Death Counts
Actions:
¤ Create Marine
¤  Subtract X Death Counts to X Unit
¤ Preserve Trigger


Basicly you would have to test how many death counts occur in 2 seconds. I believe that it's 12.2 per second.


null
Trigger
Conditions:
¤ Switch 1 is Set
Actions:
¤  Add 1 Death Count to Y Unit
¤  Add 12 Death Counts to Z Unit
¤ Preserve Trigger


This trigger would be the 50 second timer. Every second a Death Count is added to Y unit.


null
Trigger
Conditions:
¤ Death Count is 50 for Y Unit
Actions:
¤ Disable Switch 1


Once you have 50 Death Counts of Y Unit, then you know 50 seconds have passed and you can disable the switch.

It's simple yet effective. Another method that i'd rather use would be having two physical timers.
Using 2 observers have one move a distance equivalent of 2 seconds and then have the other one move a distance equivakent to 50 seconds.
Then you get the overall idea, once the first observer has reached it's destination create the marine and move the first observer to it's original location and order it to move to the 2 second location.
Now with the second oberver just disable the switch once it reaches the 50 second location.

I myself would prefer using the Physical Timer because it is less buggy although it takes more time to correctly create.
Report, edit, etc...Posted by JSonicC on 2005-06-13 at 12:01:40
Aright, thanks for the ideas, you've got me thinking outside the box on the problem. Ill keep ideas running and let u know what method i use.
Next Page (1)