Staredit Network

Staredit Network -> UMS Assistance -> Spawning
Report, edit, etc...Posted by Menehunes on 2005-02-17 at 00:59:26
for some reason this unit wont spawn. here is the trig

1st Step
Trigger
Conditions:
¤ Bring(CurrentPlayer, AtLeast, 1, Spell Starter, Disease Trail);
¤ Accumulate(CurrentPlayer, AtLeast, 80, Gas);
¤ Command(CurrentPlayer, Exactly, 4, Level Counter);
¤ Always();
Actions:
¤ SetResources(CurrentPlayer, Subtract, 80, Gas);
¤ CreateUnitWithProperties(1, , Shadowknight, P5, 14);
¤ SetSwitch(Disease Trail Activation, Set);
¤ Wait(7000);
¤ SetSwitch(Disease Trail Activation, Clear);
¤ RemoveUnit( , P5);
¤ PreserveTrigger();
¤ Comment("Disease Trail");
¤ Preserve Trigger



Create the mines
Trigger
Conditions:
¤ Deaths(P5, AtLeast, 50, Disease Trail);
¤ Always();
Actions:
¤ CreateUnit(1, Disease Trail, Scourge, P5);
¤ SetDeaths(P5, SetTo, 0, Disease Trail);
¤ PreserveTrigger();
¤ Comment("Disease Death Counter");



Start Death Counter
Trigger
Conditions:
¤ Switch(Disease Trail Activation, Set);
¤ Always();
Actions:
¤ SetDeaths(P5, Add, 1, Disease Trail);
¤ PreserveTrigger();
¤ Comment("Disease Death Counter");


o and i did put the location thing in the trigger area i just did not want to put it on =D but if u need to see that just ask. and the problem is the "Disease Trail" wont spawn for some reason
Report, edit, etc...Posted by sckor on 2005-02-17 at 06:19:51
first problem - You sure you're centering the location on right?
second problem - it says that you need 50 deaths of the disease trail. And then it sets it to zero. So obviously, its going to just occur once or something.

(New Action) Means something that you didn't put in before but I put it in there

Here is what I'd do.

condition

Command exactly 4 level counter
Brings at least one 'unit' to 'cast spell'
accumulates at least '80' of 'minerals'

Action

Set resource for current player; subtract '80' 'minerals'
(New action)
Move 'all' 'units' owned by 'current player' at 'Cast Spell' to 'Reset'
set 'Disease Trail'
create 'infected unit'
wait '7000' miliseconds
clear 'disease trail'
preserve trigger
comment (cast disease trail)






Condition

'Disease Trail' is 'Set'

Action

Center location labeled 'disease trail' on 'infected unit'
Create 'unit' at 'infected unit'
Preserve trigger
comment 'create for disease trail'








Condition

'Disease Trail' is 'Cleared'

Action

Remove all 'infected unit' for 'current player'
preserve trigger

I hope that's what you mean.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-02-17 at 09:53:11
who owns the triggers?
how does the player gain gas?
What are the level counters?
Is it just the first trigger that doesn't fire?
are you expecting the player to receave 50 deaths of the unit in 7 seconds?

Make SURE that your meating the conditions for the first trigger.
PS starforge syntax sucks.
Report, edit, etc...Posted by chuiu on 2005-02-17 at 11:15:45
QUOTE
CreateUnitWithProperties(1, , Shadowknight, P5, 14);


If this is how you actually have it, then you are using unit "" and location Shadowknight. Is that true?
Report, edit, etc...Posted by Menehunes on 2005-02-17 at 12:02:10
ok sckor i think because of u i found out the problem. and i am sure that the locations are right. and i am sure 50 deaths of the unit will be anofe because i have a similiar trigger that does the death counter [different unit of course] that is even more for same amount of time. i think i just have to set it if it gets 51 deaths of the unit it resets and at 50 it makes the unit. that might be the problem that i realized because of you sckor
Next Page (1)