| 09-04-2004, 10:54 PM | #1 |
i want a duel system where two person who wants to duel enters two circle of powers like this: Person 1> O O < person 2 and then they get moved to an arena but if two people already is dueling then the trigger must be disabled and re-enabled after the've finished dueling |
| 09-04-2004, 11:34 PM | #2 |
me! me! i take the word!! :8 you need: region 1 region 2 Trigger name: MyFight events unit enters region1 unit enters region2 actions if - conditions [(region1) = no-unit] = false [(region2) = no-unit] = false then - actions move [units in region1] to (region where they fight) move [units in region2] to (region where they fight) trigger - turn off this trigger else - actions do nothing after the battle or whatever you want, set: trigger - turn on (MyFight) easy! wasn't it? |
| 09-05-2004, 12:11 AM | #3 |
i did this in my unreal tournament series of maps...it went something like this this requires the following variables: duelchallengerregion: (region) this is the possition of the person who types "duel" after sum1 else types "accept" duelacceptorregion: (region) this is the possition of the person who types "accept" to duel duelchallenger: hero owned by player who challenges a duel duelacceptor: hero owned by player who accepts a duel challenge duel integer: (default 0) this is a 3 stage integer to make sure u dont end up with a cluster fuck in your duel system...stage (aka value of duel integer) 0 means u can challenge, stage 1 means you can accept, stage 2 means theres a duel in progress... Timer/Timer window p1: (unit) hero of player 1 p2: (unit) hero of player 2 (you'll need 1 of these for every player) CHALLENGE DUEL player types duel if duel integer =0 then run trigger (duel challenge ok trigger) if duel integer =1 then game display to triggering player a duel has already been challenged, type accept to duel this person (player name) if duel integer =2 then game display to triggering player a duel is already in progress, please wait till somebody prevails! DUEL CHALLENGE OK set duel integer variable to 1 set p1 (player 1's hero) as duelchallenger create timer for 30 seconds with name "waiting for acceptor" /wait 30 seconds, if duel integer=1, and set duel integer =0, destroy timer window ACCEPT CHALLENGE player types accept if duel integer = 1 then do... set duel integer variable to 2 set p2 (player 2's hero, or whatever player accepted) to duelacceptor destroy timer window region move: duelchallengerregion to possition of duelchallenger region move: duelacceptorregion to possition of duelacceptor units: move duelchallenger to region (north side of dueling arena) units: move duelacceptor to region (south side of dueling arena) followed by... unit dies in region (dueling arena) if/then/else if killing unit=duelchallenger then move duelchallenger to duelchallengerregion if killing unit=duelacceptor then move duelacceptor to duelacceptorregion variable: set duel integer=0 game display to all players (name of owner of killing unit) has defeated (name of owner of dead unit) in a duel! now accepting new challengers... pretty simple, pretty reliable, and alot of fun =) hope this gave you a better understanding of what u will have to do if this is confusing...understand that my triggering is very unorganized and sloppy so that only i can understand what i do =) good luck! |
