HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Its Duel Time :O Trigger plz help

08-23-2003, 09:26 PM#1
SzymonK
ive need to cr8 a duel trigger like in hero arena ive seen it but **** its harD :O
someone can say it easier ?
and one more :
when player 1 red (blue 2, ... , ) type message: duel with Blue
display message to player blue: yes or no
and i need this:
blue say yes move unit to the region and fight like in hero arena
when player wins cr8 item for him at region Win when he take item back to his place before fitght
thnx
08-23-2003, 10:03 PM#2
Dead-Inside
That's not a little you ask for.
Okay, you need to make one trigger for all players. And then one for the arena.

Here's my typing:
Player 1 (Red)'s trigger (just replicate and change numbers ect for all players):
Events-
Player 1 (Red) types "Duel " as a substring
Conditions-
Integer Comparsion - DuelCheck[1] equal to 0
Actions-
If (Enters chatstring(6,9)) equal to Blue then do set DuelCheck[1] = 1 and Trigger Turn on - Blue and Display Text-Message to Player 2 (Blue): Red has challenged you to a duel else do nothing
If (Enters chatstring(6,9)) equal to Teal then do set DuelCheck[1] = 1 and Trigger Turn on - Teal and Display Text-Message to Player 3 (Teal): Red has challenged you to a duel else do nothing
If (Enters chatstring(6,10)) equal to Purple then do set DuelCheck[1] = 1 and Trigger Turn on and Display Text-Message to Player 4 (Purple): Red has challenged you to a duel - Purple else do nothing

And so on until you have all players, notice the numbers inside of the ()'s? Count from 6 (6 being 1) til the end letter of the color.
Now, let's look at the trigger called Blue:
Events-
Player 2 (Blue) types Yes as an exact match
Player 2 (Blue) types No as an exact match
Actions-
If (Enteredchatstring(1,3)) equal to Yes then do Run ARENA and place this and reds hero in the arena first...
If (Enteredchatstring(1,2)) equal to No then do Display Text-Message to Player 1 (Red): You got turned down and Turn of (This trigger)

That's all for now, someone write the final parts of this system.

Regards
Dead-Inside
08-23-2003, 10:21 PM#3
SzymonK
thnx for u :) write so much :D