Hey.
I was looking at Husky's guide (seems like someone else needs help with it on the forum too)
But anyway, Here is the code for the second trigger in his tutorial, which is about you getting an optional quest, with killing 10 kobolds.
Here is the trigger:
What I was wondering about was this:
Is that a variable or something? or a trigger? And if it's a variable... am I supposed to use the quest variable, or integer variable?
If there are anything else I need help with which is about the guide, I will post here.
Also giving +Reputation for anything that benefits me.
-Thanks for all support.
-Magnemann.
I was looking at Husky's guide (seems like someone else needs help with it on the forum too)
But anyway, Here is the code for the second trigger in his tutorial, which is about you getting an optional quest, with killing 10 kobolds.
Here is the trigger:
Code:
aKill Kobolds
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Kobold Tunneler
(Unit-type of (Triggering unit)) Equal to Kobold Geomancer
Actions
Set Kobold_Killed = (Kobold_Killed + 1)
Game - Display to (All players) for 3.00 seconds the text: (((String(Kobold_Killed)) + /10) + Kobolds Killed.)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Kobold_Killed Equal to 10
Then - Actions
Sound - Play GoodJob <gen>
Game - Display to (All players) the text: Return to the Captain for your Reward.
Else - Actions
Trigger - Turn off (This trigger)
What I was wondering about was this:
Code:
[b] Set Kobold_Killed = (Kobold_Killed + 1)[/b]
If there are anything else I need help with which is about the guide, I will post here.
Also giving +Reputation for anything that benefits me.
-Thanks for all support.
-Magnemann.