Staredit Network

Staredit Network -> UMS Assistance -> re-use triggers
Report, edit, etc...Posted by biteme9080 on 2006-04-08 at 12:55:32
How do you make it so you can activate triggers more than 1 time, i know this is a noobish question but i really want to know

ADDITION:
also, how do u make it so [when built] they are invincible?
Report, edit, etc...Posted by BeeR_KeG on 2006-04-08 at 13:02:53
Use the Preserve Trigger action. THis will make it so that every time the conditions for given trigger are met, the actions will run.

To make X building Invincible do this:

Trigger
Conditions:
¤ Always();
Actions:
¤ SetInvincible(XBuilding, PlayerX, Location);
¤ PreserveTrigger();
Report, edit, etc...Posted by biteme9080 on 2006-04-08 at 13:04:33
ty beer keg, i have 1 more problem though how do you make it so that you have to pay the money before you get the minerals cat and mouse, golem when you buy units
Report, edit, etc...Posted by FatalException on 2006-04-08 at 13:33:10
QUOTE(biteme9080 @ Apr 8 2006, 09:04 AM)
ty beer keg, i have 1 more problem though how do you make it so that you have to pay the money before you get the minerals cat and mouse, golem when you buy units
[right][snapback]461309[/snapback][/right]

Do you mean men? Use this trigger if that's what you mean:
Trigger
Description:
Paying for special units
Conditions:
¤ Current player brings 1 Chooser to "Buy unit 1."
Actions:
¤ Subtract quantitynum resource from Current player.
¤ Create quantitynum Unit 1 at "Special unit drop off zone."
¤ Preserve trigger.

Don't use the preserve trigger if you only want the unit to be bought once. And that's pretty much it tongue.gif
Report, edit, etc...Posted by biteme9080 on 2006-04-08 at 13:36:14
QUOTE(FatalException @ Apr 8 2006, 11:32 AM)
Do you mean men? Use this trigger if that's what you mean:


Trigger
Description:
Paying for special units
Conditions:
¤ Current player brings 1 Chooser to "Buy unit 1."
Actions:
¤ Subtract quantitynum resource from Current player.
¤ Create quantitynum Unit 1 at "Special unit drop off zone."
¤ Preserve trigger.

Don't use the preserve trigger if you only want the unit to be bought once. And that's pretty much it tongue.gif
[right][snapback]461320[/snapback][/right]



thats the trigger i have now, but the thing is that it only subtracts the minerals if you have them but no matter what u always get it.
Report, edit, etc...Posted by FatalException on 2006-04-08 at 13:39:11
QUOTE(biteme9080 @ Apr 8 2006, 09:35 AM)
thats the trigger i have now, but the thing is that it only subtracts the minerals if you have them but no matter what u always get it.
[right][snapback]461325[/snapback][/right]

o rly? Looks like I'll have to do a little testing before I post here again... By the way, what editor do you use? SCMDraft 2 wins.
Report, edit, etc...Posted by biteme9080 on 2006-04-08 at 13:49:12
the first one, i think
Report, edit, etc...Posted by Fwop_ on 2006-04-08 at 14:01:20
Just add the Accumulate Resources condition.
Report, edit, etc...Posted by Sinx on 2006-04-08 at 14:15:04
I thin he means reusing a trigger such as:

Trigger
Description:
Re-Using a Trigger
Players:
¤ Current Player
Conditions:
¤ Current Player brings 1 [men] to [location
Actions:
¤ Create 1 [unit] at [location]

Using a trigger like that but making it reusable but still only making 1 instead of when using preserve trigger it just keeps it going.
Report, edit, etc...Posted by BeeR_KeG on 2006-04-08 at 14:23:41
QUOTE(biteme9080 @ Apr 8 2006, 01:35 PM)
thats the trigger i have now, but the thing is that it only subtracts the minerals if you have them but no matter what u always get it.
[right][snapback]461325[/snapback][/right]



Trigger
Conditions:
¤ Current Players has X amount of minerals
¤ Current Players brings Unit to Location X
Actions:
¤ Remove minerals
¤ Move the Unit at Location X to Location Y
¤ Create Unit for Current Player
¤ Preserve Trigger

Report, edit, etc...Posted by biteme9080 on 2006-04-08 at 14:25:10
ty it helped

ADDITION:
my friend is making a mass game and wants to know how to get unlimited unit, the limit not there
Report, edit, etc...Posted by BeeR_KeG on 2006-04-08 at 14:27:07
All maps will have a limit of 1700 units. You can create as many units as you want, but not more will be created, even if it's by trigger, after 1700. This is when you get the "Cannot create more units." message, there is no way to go around it.
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-04-08 at 17:00:17
QUOTE(biteme9080 @ Apr 8 2006, 12:55 PM)
also, how do u make it so [when built] they are invincible?
[right][snapback]461295[/snapback][/right]


Use the "Create units with properties" action.
Next Page (1)