I edited the system and this i what i have:
*-*
Duelo_Retador= is the player that use the duel (duelo) spell
Duelo_retado = is the player that is target with the duel spell
Duelo_Posicion = is the position of the units
SistemaDuelo= is the dialog window of accept or reject the duel
SistemaDueloSI = Button to accept the duel
SistemaDueloNO = Button to reject the duel
Duelo_Jugador_Retador = Owner of the casting unit
Duelo_Jugador_Retado= Owner of the target unit
*-*
Duelo_Posicion[1]= Position of the challenger(casting, Retador)
Duelo_Posicion[2]= Position of the challenged(target, retado)
Duelo_Time = Timer to start the duel
Duelo_ACtivo= For check if the unit died in a duel
*-*
Duelo_Retador= is the player that use the duel (duelo) spell
Duelo_retado = is the player that is target with the duel spell
Duelo_Posicion = is the position of the units
SistemaDuelo= is the dialog window of accept or reject the duel
SistemaDueloSI = Button to accept the duel
SistemaDueloNO = Button to reject the duel
Duelo_Jugador_Retador = Owner of the casting unit
Duelo_Jugador_Retado= Owner of the target unit
*-*
-
Create Dialog Buttons
-
Events
- Unit - A unit start the effect of an ability
-
Condiciones
- (Ability being cast) Igual a Duelo (|cffffcc00E|r)
-
Acciones
- -------- Challenger = retador --------
- Set Duelo_Retador[(Player number of (Owner of (Casting unit)))] = (Casting unit)
- Set Duelo_Jugador_Retador = (Owner of (Casting unit))
- Set Duelo_Posicion[1] = (Position of Duelo_Retador[(Player number of (Owner of (Casting unit)))])
- -------- Challenged = retado --------
- Set Duelo_Retado[(Player number of (Owner of (Target unit of ability being cast)))] = (Target unit of ability being cast)
- Set Duelo_Jugador_Retado = (Owner of (Target unit of ability being cast))
- Set Duelo_Posicion[2] = (Position of Duelo_Retado[(Player number of (Owner of (Target unit of ability being cast)))])
- Dialoge - Change the title of SistemaDuelo to ((Name of (Owner of Duelo_Retador[(Player number of (Triggering player))])) + Te ha retado a un duelo)
- Dialoge - Create a dialog button for SistemaDuelo labelled Aceptar
- Set SistemaDueloSI = (Last created dialog Button)
- Dialoge - Create a dialog button for SistemaDuelo labelled Rechazar
- Set SistemaDueloNo = (Last created dialog Button)
- Dialoge - show SistemaDuelo for (Owner of Duelo_Retador[(Player number of (Triggering player))])
-
Events
Duelo_Posicion[1]= Position of the challenger(casting, Retador)
Duelo_Posicion[2]= Position of the challenged(target, retado)
Duelo_Time = Timer to start the duel
Duelo_ACtivo= For check if the unit died in a duel
-
Duel Accepted
-
Events
- Dialog - A dialog button is clicked for SistemaDuelo
-
Conditions
- (Clicked dialog button) Igual a SistemaDueloSI
-
Actions
- -------- Challenger = retador --------
- Unit - pause Duelo_Retador[(Player number of Duelo_Jugador_Retador)]
- -------- Challenged = retado --------
- Unit- pause Duelo_Retado[(Player number of (Triggering player))]
- Player- Make Duelo_Jugador_Retador treat Duelo_Jugador_Retado as an Enemy
- -------- Challenger = retador --------
- Unit - Move Duelo_Retador[(Player number of Duelo_Jugador_Retador)] instantly to Duelo_Punto[1]
- -------- Challenged = retado --------
- Unit - Move Duelo_Retado[(Player number of Duelo_Jugador_Retado)] instantly to Duelo_Punto[2]
- Timer - Start Duelo_Timer as a Un tiro timer that will expire in 15.00 seconds
- Timer - Create a timer window for (Last started timer) with title El Duelo empieza en:
- -------- Challenger = retador --------
- Timer - Mostrar (Last created timer window) for Duelo_Jugador_Retador
- -------- Challenged = retado --------
- Timer - Mostrar (Last created timer window) for Duelo_Jugador_Retado
- Set Duelo_Activo[(Player number of Duelo_Jugador_Retador)] = 1
- Set Duelo_Activo[(Player number of Duelo_Jugador_Retado)] = 1
- Trriger - Run Duelo Contador <gen> (checking conditions)
-
Events
-
Duel timer
-
event
- Timer - Duel_Time expires
- Condition
-
Action
- Game - Display to (All players) the text: DUEL START
- -------- Challenger = retador --------
- Unit - unpause Duelo_Retador[(Player number of Duelo_Jugador_Retador)]
- -------- Challenged = retado --------
- Unit - unpause Duelo_Retado[(Player number of (Triggering player))]
- Trigger - Turn on Duel Die <gen>
-
event
-
Duel Die
-
Event
- Unit - A unit Die
- Condition
-
Action
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop: Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If: Conditioon
- Duelo_Activo[(Integer A)] Igual a 1
-
then: Action
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Yes: Condition
- (Owner of (Dying unit)) Igual a Duelo_Jugador_Retador
-
then: Action
- Gane - Display to (All players) the text: CHALLENGER WIN
- Unit- Move Duelo_Retador[(Player number of (Owner of (Killing unit)))] instantly to Duelo_Punto[1]
-
else: Action
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Yes: Condition
- (Owner of (Dying unit)) Igual a Duelo_Jugador_Retado
-
then: Action
- Game - Display to (All players) the text: CHALLENGED WIN
-
else: Action
- Unit - Move Duelo_Retado[(Player number of (Owner of (Killing unit)))] instantly to Duelo_Punto[2]
-
Yes: Condition
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Yes: Condition
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
else: Action
- trigger- Turn off (This trigger)
-
If: Conditioon
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop: Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Event
Last edited: