| 08-28-2002, 10:52 PM | #1 |
Guest | This is the last time im going to bother asking this...if i dont get a reply ill just give up on this stupid map. I want a player to build a structure. Then a unit type as in more than one and they belong to the same player destroys this building Then the unit that destroyed it is removed. And another unit is in its place. lil picture- (structure) (footman) (structure goes boom) (footman attacks) (footman disapears) (knight apears) ...k not much of a picture but it might of gotten my idea across.. now er i know that i need to have for event unit is attacked, condition: unit type is attacking unit type is attacked yadda yadda, ACTIONS: remove unit, add unit... now my problem is EVENT: Unit owned by player2 is attacked (i got that down) Condition: ????? ???????? ?????!! (no clue how to do this none whatsoever...) ACTIONS: Remove yadda yadda, ????????? (i dotn know how to add the new unit) if this question confuses you fine just dont awnser because im getting tired of explaining it (not meaning to be rude) if someone tells me how to do this i will be incredibly happy. But im realy getting sick of looking at all these triggers for an hour trying to...im just gonna stop before i start cursing. thank you if you even care to help... |
| 08-28-2002, 11:20 PM | #2 |
Guest | I'm too lazy to run the editor, but I think these may be what you're looking for (in the triggers) Conditions Unit Comparison - (Event Response - Attacked unit) equal to (Barracks) The actions you're looking for are all under "Unit -". Most of them are pretty self explanitory... |
| 08-29-2002, 12:46 AM | #3 |
EDIT - I can't spell :cool: I'm not trying to be rude either, but if you took some time to look at the condition triggers, you probably would have figured it out, but here it is anyways. Event - (Player Specific Event) - A unit owned by [Player 2] [dies] Condition - Unit Comparrison - [Random unit from (units owned by <player 2> of type <Barracks>) equal to (Triggering Unit) Actions: IF/THEN/ELSE - If (Unit Comparrison) {Killing unit equal to type (footman) then, Unit - Replace (killing unit with (Knight) else, do nothing. -- End -- |
| 08-29-2002, 03:34 AM | #4 |
Guest | Event: Unit Dies Conditions: Triggering Unit = Barracks Killing Unit = Footman (possibly also Triggering Unit in some Region to make sure it's the right structure) |
| 08-30-2002, 02:15 AM | #5 |
Guest | Thank you all! maybe now i can move on to player 3...:) P.S: i did try REALy hard to find the ocndition things but my variables seemed to not work at all :/ beleive me i spent about 30 minutes checking each condition thingy :) PPSS: THANKU AGAIN!!! PPPSS: sorry i been gone fer a while 7 hours work of homework :/ never be absent!!!!!!! ever!!!!! PPPPSS: Thanks again! |
