Problem solved.
I had just put the integer +1 inside the array check..
Can somebody delete this post? I can't seem to do so. I do not want to spam with this silly thread.
Hello
So I have just made a simple quest, to make it easy. I am using string arrays.
You accept the quest and return it in trigger 1.
You kill and increase integer value in trigger 2.
But for some reason, when I kill a unit, and the text string goes off (as for the counter) it states:
"You have killed a unit. Total: 0"
I have looked it through. I found some possible errors, but now I am just staring blind. I thought a nights sleep would solve it, but I am lost.
I am also just new to the MUI array system and strings.. So I might have done something stupid along the way.
Oh well, here they are:
Trigger 1:
-
Deliver Quest Skabelon
-

Events
-


Unit - A unit comes within 200.00 of Survivor of Alkarah 0010 <gen>
-
-

Conditions
-


(Triggering unit) Not equal to Survivor of Alkarah 0010 <gen>
-


((Entering unit) is A Hero) Equal to True
-


(Owner of (Entering unit)) Not equal to Neutral Passive
-


(Owner of (Entering unit)) Not equal to Player 12 (Brown)
-
-

Actions
-


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



If - Conditions
-




Quest[(Player number of (Triggering player))] Equal to notstarted
-
-



Then - Actions
-




Game - Display to (All allies of (Owner of (Triggering unit))) for 15.00 seconds the text: Quest accepted.
-




Set Quest[(Player number of (Triggering player))] = started
-




Set Quest_Kill[(Player number of (Owner of (Entering unit)))] = 0
-




Skip remaining actions
-
-



Else - Actions
-




Do nothing
-
-
-


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



If - Conditions
-




Quest[(Player number of (Triggering player))] Equal to started
-
-



Then - Actions
-




Game - Display to (All allies of (Owner of (Triggering unit))) for 15.00 seconds the text: Quest is ongoing.
-




Skip remaining actions
-
-



Else - Actions
-




Do nothing
-
-
-


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



If - Conditions
-




Quest[(Player number of (Triggering player))] Equal to return
-
-



Then - Actions
-




Game - Display to (All allies of (Owner of (Triggering unit))) for 15.00 seconds the text: Quest completed.
-




Set Quest[(Player number of (Triggering player))] = notstarted
-




Skip remaining actions
-
-



Else - Actions
-




Do nothing
-
-
-


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



If - Conditions
-




Quest[(Player number of (Triggering player))] Equal to complete
-
-



Then - Actions
-




Game - Display to (All allies of (Owner of (Triggering unit))) for 15.00 seconds the text: Quest is already co...
-




Skip remaining actions
-
-



Else - Actions
-




Do nothing
-
-
-
-
-
Kill Quest Skabelon
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Equal to Corrupted Treant
-
-

Actions
-


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



If - Conditions
-




Quest[(Player number of (Owner of (Killing unit)))] Equal to started
-
-



Then - Actions
-




Set Quest_Kill[(Player number of (Owner of (Killing unit)))] = Quest_Kill[((Player number of (Owner of (Killing unit))) + 1)]
-




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





If - Conditions
-






Quest_Kill[(Player number of (Owner of (Killing unit)))] Greater than or equal to 3
-
-





Then - Actions
-






Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: Quest complete.
-






Set Quest[(Player number of (Owner of (Killing unit)))] = return
-






Skip remaining actions
-
-





Else - Actions
-






Do nothing
-
-
-




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





If - Conditions
-






Quest_Kill[(Player number of (Owner of (Killing unit)))] Less than 3
-
-





Then - Actions
-






Game - Display to (Player group((Owner of (Killing unit)))) for 5.00 seconds the text: (You have killed a unit. Total: + (String(Quest_Kill[(Player number of (Owner of (Killing unit)))])))
-
-





Else - Actions
-






Do nothing
-
-
-
-



Else - Actions
-




Do nothing
-
-
-
-
I just updated trigger 2 and put the integer counter from the second "if/then/else" and put it atop of them both, making it follow the string condition right after the "started" check.






