Staredit Network

Staredit Network -> UMS Assistance -> Making Civilian
Report, edit, etc...Posted by dundahead on 2005-07-17 at 18:34:44
helpsmilie.gif I'm making a sunken defence and i can't make the trigger that makes the civilians spawn if you kill bad guys. i put a two triggers to make the civs.

1st:condition Score(CurrentPlayer, Kills, AtLeast, 1);
action:CreateUnit(1, Civilian, spawn civs, CurrentPlayer);

2nd Condition: Score(CurrentPlayer, Kills, AtLeast, 1);
Action:Wait(1);
SetScore(CurrentPlayer, Subtract, 1, Kills); : helpsmilie.gif :
Report, edit, etc...Posted by Subrosian on 2005-07-17 at 18:40:51
This is just like kills to cash, except you get civilians.

Read the below topics or the tutorials.
Report, edit, etc...Posted by DevliN on 2005-07-17 at 18:52:04
Well first off, you don't need 2 separate triggers. You could have the player gain a new civilian and reset the kills in the same action. Secondly, its best to set to 0 rather than subtract 1. You don't get 1 point per kill in "kill score." Instead you get 350 for killing a Ghost and I think 200 for a Marine. So subtracting 1 wont help at all.

Oh and you're also missing Preserve Trigger.
Report, edit, etc...Posted by dundahead on 2005-07-18 at 00:26:39
it still doesnt work i followed what the tutorial instructions
condition:kills at least 1

action:CreateUnit(1,currentplayer,Civilian, spawn civs, CurrentPlayer);
SetScore(CurrentPlayer, SetTo, 0, Kills);
PreserveTrigger();


ADDITION:
oh and i use starforge i think the version is 2.2

ADDITION:
w00t.gif smile.gif I did it i did it YAY biggrin.gif when u pick wich players it affects i changed it from current player to all players!!!! biggrin.gif w00t.gif
Report, edit, etc...Posted by JSonicC on 2005-07-20 at 09:33:12
You could do it like this

Player kills score is more than 1.

Reset kills score to 0
create flag at location counter
preserve trigger.


Player brings 10 (< number of kills to civ) flags to location counter
kill 10 flags at location counter
create 1 civilian at civ spawn
preserve trigger

that would work, but im not sure it would be the best.

Next Page (1)