- Joined
- Jul 14, 2011
- Messages
- 3,213
Hi!
In my map all quest are created at the beginning and are enabled for players as they discover them, but I want to display stats of quest if they are enabled at the time for that playe.
Stats enabled so far are: Evasion, Faith Points, and LifeDustCollected Only if the quest is enabled for triggering player)
so I use:
In my map all quest are created at the beginning and are enabled for players as they discover them, but I want to display stats of quest if they are enabled at the time for that playe.
Stats enabled so far are: Evasion, Faith Points, and LifeDustCollected Only if the quest is enabled for triggering player)
so I use:
-
Stats command
-

Events
-


Player - Player 1 (Red) types a chat message containing -stats as An exact match
-


Player - Player 2 (Blue) types a chat message containing -stats as An exact match
-


Player - Player 3 (Teal) types a chat message containing -stats as An exact match
-


Player - Player 4 (Purple) types a chat message containing -stats as An exact match
-


Player - Player 5 (Yellow) types a chat message containing -stats as An exact match
-
-

Conditions
-

Actions
-


Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-


Custom script: call ClearTextMessages()
-


Custom script: endif
-


Set PNOBU = (Player number of (Triggering player))
-


Set TempUnit = Heroes[PNOBU]
-


Set TempForce = (Player group((Triggering player)))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Evasion for TempUnit) Greater than 1
-
-



Then - Actions
-




Game - Display to TempForce the text: (|cfffff700Evasion|r: + (String((((Level of Evasion for TempUnit) x 2) - 2))))
-
-



Else - Actions
-




Game - Display to TempForce the text: (|cfffff700Evasion|r: + 0)
-
-
-


Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Quests[3] is enabled) Equal to True
-




(Quests[3] is completed) Equal to False
-
-



Then - Actions
-




Game - Display to TempForce the text: (|cfffff700Amos Life Essences|r: + (String(LifeDustCount[PNOBU])))
-
-



Else - Actions
-
-


Custom script: endif
-


Game - Display to TempForce the text: (|cfffff700Faith Points|r: + (String(FP[(Player number of (Triggering player))])))
-


Custom script: call DestroyForce(udg_TempForce)
-
-
-
Custom script: if GetLocalPlayer() == GetTriggerPlayer() then
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

If - Conditions
-


(Quests[3] is enabled) Equal to True
-


(Quests[3] is completed) Equal to False
-
-

Then - Actions
-


Game - Display to TempForce the text: (|cfffff700Amos Life Essences|r: + (String(LifeDustCount[PNOBU])))
-
-

Else - Actions
-
-
Custom script: endif




