| 02-01-2004, 03:30 AM | #1 |
Again i'm making to many triggers for simple things... How would i make I already have the simplest way for this Player 1 slot status = to unused Now i got to much for this stuff How would i do Kill all Units owned by player 1 cuz its not unused Also When those units die A unit spawns from them corpses... I have like 70 triggers just to do that and it takes way to much time which makes me not wanna make my maps... |
| 02-01-2004, 12:27 PM | #2 |
Im on an answering rampage! yesterday i was at 9 points, today, 30! (but who says my answers are helpful, heh) I think your asking, for one thing, kill all units owned by player 1. (correct? incorrect?) If this is indeed the case, then try this: Pardon my mistakes (world editor just crashed) Unit Group - Pick All Units in(playable Map Area) and do (If (Owner Of(Picked Unit) Equal To (Player 1(Red)) Then Do(Kill(picked unit)) Else do( Do nothing)) If you want to only do it when he is unused, then i think he would be neutral passive. Then your only condition would be: (Player 1(red) controller equal to passive) im pretty sure thats what your asking. The other question is how to make a unit spawn from a dead units corpse. ugh. My idea for this is to make a reigion as a variable. Move this reigion to the dead unit, and create one unit in the center of the reigion. Hey, thats ez. Just tested it myself, im sure it works :ggani: Lets see here Events: A Unit Owned By (Player 1(Red)) Dies Actions: Create One Ghoul at position of(triggering unit) facing default building facing degrees |
| 02-01-2004, 01:01 PM | #3 |
omg thx alot and omg i cant belive i didn't see that.. But for the first thing you answered i still have to do that same trigger again for each player? I knew this... i just looking for simplier ways |
| 02-01-2004, 01:12 PM | #4 | |
Quote:
ah. You know, i think i was born to use this trigger editor. I just found the one thing that does it all. check it!! Player Group - Pick every player in (all players) and do (if(((picked player(controler)equal to (passive)) then do (Unit Group - Pick All Units in(playable Map Area) and do (If (Owner Of(Picked Unit) Equal To (Picked Player) Then Do(Kill(picked unit)) Else do(Do nothing))) else do (nothing) (split up because its so DARN BIG) Thats one heck of a long statement, but if i am correct, it should work for everything. have fun :ggani: |
| 02-01-2004, 01:17 PM | #5 |
Ok, first i think johnfn didn't read carefully what you said for i think what you meant was if a player is not playing then kill his unit ( correct ?) Question 1 1) why did you create unit for this player if he wasn't playing? 2)unit are allready in game and were not created, so just do game Event: elapsed time 2.00 sec condition: action: if, then, else (multiple action) if- C: player 1 slot statut = used Then- A: Do nothing Else- A: pick every unit on playable map owned by player 1 and kill picked unit. if then else (multiple action) etc...for all player this way if slot is unused or if player left before 2 sec elapsed his unit will be killed, if you want unit to be killed even if he leave game after 2 sec. then change the elapsed time with a periodic time 5sec. question 2 1) did the killed unit always spawn unit when they die ? if answer is yes then give all unit ability create spider(neutral hostile) and change the number to 1 and unit type to the one you want. 2) the unit killed spawn unit only if player unit is killed because the player slot is unused. Then do instead of kill picked unit in the trigger that check if player are there replace picked unit with the monster that should spawn from there dead body. if there is thing i missed or things not correct tell me. but u should know that there is slot unused, slot used and slot left the game, they are all slightly different and you need to know exactly what you really want to do before to choose one or another. |
| 02-01-2004, 02:07 PM | #6 |
Don't try to act supreme or something we already got it. Thank you anyways. |
