HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Battle Arena trigger(s)

11-01-2003, 06:33 PM#1
Aelita Lyoko
I have been working on a map, adn i wanted to encorparate a a type of battle arena system.

What i want to do is have it so that when any player types -duel, a timer comes up with a countdown. I have that already. But, how do i make it so that when a p;ayer types -accept, they do get moved to the arena, and fight?

If anyone has the slightest clue as to what i am talking about, let me know how to do all this.
11-05-2003, 09:37 PM#2
Aelita Lyoko
bump
11-06-2003, 06:44 PM#3
Azraelf
You could make the player who types "-duel" choose another player like
"-Duel 01" then that player could get a Dialog box open and ask if he accepts or not. Or have a Text appear for that player asking to type "-Accept" or "-Decline" with a variable as array.

I.e:

Event
A player enters "-Duel" as a substring

Condition
Substring (entered chat string, 6, 7) <##
* Not sure if it really looks like this, ## being the number of players in game*
Substring (entered chat string, 6, 7) > 0

Actions
Dask = Player Number (Triggering player)
PlayerDuel(Dask) = Substring (entered chat string, 6, 7)
Game- Message (Player Name(Trigering Player) + " has asked to duel you, Type "-accept" to accept the challenge or "-decline" to refuse it")


Events
A player enters "-accept" as a substring

Condition
Substring (entered chat string, 6, 7) <##
Substring (entered chat string, 6, 7) > 0
playerduel(Substring (entered chat string, 6, 7)) = player number (Triggering player)

Actions
Game- Message to Player(Dask) (Player Name(Trigering Player) + " has accepted your challenge.")
Unit- move Hero(Dask) instantly to Region Fight 1
Unit- move Hero(Playernumber(Triggering Player)) instantly to Region Fight 1

Well thats about it... might be many mistakes up there but the point is more to show how you could do it. And the code I wrote is not exactly like the editor would show it.
11-07-2003, 01:54 AM#4
Aelita Lyoko
Just curious, what is dask?
11-12-2003, 11:25 PM#5
Azraelf
Your duel stuff if u need it. Else im dumb may be :(