Why are these triggers not functioning properly? Works fine with 1 player but gets buggy with more players.
Thank you very much in advance.
Thank you very much in advance.
-
Event Installization
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set VariableSet PlayerNumber = (Player number of (Triggering player))
-
For each (Integer DialogLoop) from 1 to 4, do (Actions)
-
Loop - Actions
-
Custom script: set udg_Dialog[udg_DialogLoop] = DialogCreate()
-
Trigger - Add to Level Buttons <gen> the event (Dialog - A dialog button is clicked for Dialog[DialogLoop])
-
-
-
-
-
Level Dialog
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Attribute Points
-
-
Actions
-
Set VariableSet Hero[PlayerNumber] = (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
AttributePoints[PlayerNumber] Not equal to 0
-
-
Then - Actions
-
Set VariableSet State[PlayerNumber] = 0
-
Dialog - Clear Dialog[PlayerNumber]
-
Dialog - Change the title of Dialog[PlayerNumber] to Choose your attribu...
-
Dialog - Create a dialog button for Dialog[PlayerNumber] labelled |cffff0000Strength ...
-
Set VariableSet Dialog_Str[PlayerNumber] = (Last created dialog Button)
-
Dialog - Create a dialog button for Dialog[PlayerNumber] labelled |cff00ff00Agility |...
-
Set VariableSet Dialog_Agi[PlayerNumber] = (Last created dialog Button)
-
Dialog - Create a dialog button for Dialog[PlayerNumber] labelled |cff8080ffIntellige...
-
Set VariableSet Dialog_Int[PlayerNumber] = (Last created dialog Button)
-
Dialog - Show Dialog[PlayerNumber] for (Owner of Hero[PlayerNumber])
-
Set VariableSet AttributePoints[PlayerNumber] = (AttributePoints[PlayerNumber] - 1)
-
-
Else - Actions
-
Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: You do not have eno...
-
-
-
-
-
Level Buttons
-
Events
-
Conditions
-
Actions
-
-------- Strength --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to Dialog_Str[PlayerNumber]
-
-
Then - Actions
-
Hero - Modify Strength of Hero[PlayerNumber]: Add 1.
-
-
Else - Actions
-
-
-------- Agility --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to Dialog_Agi[PlayerNumber]
-
-
Then - Actions
-
Hero - Modify Agility of Hero[PlayerNumber]: Add 1.
-
-
Else - Actions
-
-
-------- Intelligence --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to Dialog_Int[PlayerNumber]
-
-
Then - Actions
-
Hero - Modify Intelligence of Hero[PlayerNumber]: Add 1.
-
-
Else - Actions
-
-
-------- New Dialog --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
State[PlayerNumber] Equal to 0
-
-
Then - Actions
-
Dialog - Clear Dialog[PlayerNumber]
-
Dialog - Change the title of Dialog[PlayerNumber] to Choose your attribu...
-
Dialog - Create a dialog button for Dialog[PlayerNumber] labelled |cffff0000Strength ...
-
Set VariableSet Dialog_Str[PlayerNumber] = (Last created dialog Button)
-
Dialog - Create a dialog button for Dialog[PlayerNumber] labelled |cff00ff00Agility |...
-
Set VariableSet Dialog_Agi[PlayerNumber] = (Last created dialog Button)
-
Dialog - Create a dialog button for Dialog[PlayerNumber] labelled |cff8080ffIntellige...
-
Set VariableSet Dialog_Int[PlayerNumber] = (Last created dialog Button)
-
Dialog - Show Dialog[PlayerNumber] for (Owner of Hero[PlayerNumber])
-
Set VariableSet State[PlayerNumber] = 1
-
-
Else - Actions
-
Set VariableSet State[PlayerNumber] = 0
-
-
-
-