- Joined
- Jun 11, 2018
- Messages
- 201
Does anyone know why newlines doesn't work here?
-
Player Command Income
-
Events
-
Player - Player 1 (Red) types a chat message containing -income as An exact match
-
Player - Player 1 (Red) types a chat message containing -i as An exact match
-
Player - Player 1 (Red) types a chat message containing -id as An exact match
-
Player - Player 1 (Red) types a chat message containing -incomedetails as An exact match
-
Player - Player 1 (Red) types a chat message containing -income details as An exact match
-
-
Conditions
-
Actions
-
-------- //----Initialize loval variables for the trigger instance --------
-
Set VariableSet Income_Player = (Triggering player)
-
Set VariableSet Income_TotalIncome = 0
-
Set VariableSet Income_CycleDuration = 120.00
-
Set VariableSet Income_DetailsString = <Empty String>
-
Set VariableSet Income_BaseIncomeAmount = 0
-
-------- //----Determine base income for the triggering player --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Income_Player is in HordePlayerGroup.) Equal to True
-
-
Then - Actions
-
Set VariableSet Income_BaseIncomeAmount = 80
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Income_Player is in AllianceGroup.) Equal to True
-
-
Then - Actions
-
Set VariableSet Income_BaseIncomeAmount = 40
-
-
Else - Actions
-
Set VariableSet Income_BaseIncomeAmount = 40
-
-
-
-
-
-------- //----Add Base Income to Total Income initially --------
-
Set VariableSet Income_TotalIncome = (Income_TotalIncome + Income_BaseIncomeAmount)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income1Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_TotalIncome = (Income_TotalIncome + 1)
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income5Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_TotalIncome = (Income_TotalIncome + 5)
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income10Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_TotalIncome = (Income_TotalIncome + 10)
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income20Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_TotalIncome = (Income_TotalIncome + 20)
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income30Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_TotalIncome = (Income_TotalIncome + 30)
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
-
-
-------- //----Check if the command is "-income details" --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Entered chat string) Equal to -income details
-
(Entered chat string) Equal to -incomedetails
-
(Entered chat string) Equal to -id
-
-
-
-
Then - Actions
-
Set VariableSet Income_DetailsString = (Parse |cffffcc00-Income Details-|n)
-
Set VariableSet Income_DetailsString = (Income_DetailsString + (Base: ( + ((String(Income_BaseIncomeAmount)) + ) |n)))
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income1Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_DetailsString = (Income_DetailsString + ((Name of (Picked unit)) + (Parse (1) |n)))
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income5Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_DetailsString = (Income_DetailsString + ((Name of (Picked unit)) + (Parse (5) |n)))
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income10Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_DetailsString = (Income_DetailsString + ((Name of (Picked unit)) + (Parse (10) |n)))
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income20Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_DetailsString = (Income_DetailsString + ((Name of (Picked unit)) + (Parse (20) |n)))
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_UnitGroup = (Units owned by Income_Player matching (((Matching unit) is in Income30Group.) Equal to True).)
-
Unit Group - Pick every unit in Income_UnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet Income_DetailsString = (Income_DetailsString + ((Name of (Picked unit)) + (Parse (30) |n)))
-
-
-
Custom script: call DestroyGroup(udg_Income_UnitGroup)
-
Set VariableSet Income_DetailsString = (Income_DetailsString + (Parse ----------------------|n))
-
Set VariableSet Income_DetailsString = (Income_DetailsString + ((Parse Total: ) + ((String(Income_TotalIncome)) + gold |n)))
-
Game - Display to (Player group(Income_Player)) the text: Income_DetailsString
-
-
Else - Actions
-
-------- // Display short income message --------
-
Game - Display to (Player group(Income_Player)) the text: (|cffffcc00Current Income: + ((String(Income_TotalIncome)) + ((Parse gold per ) + ((String(Income_CycleDuration)) + (Parse s)))))
-
-
-
-