Need help with a quest trigger.

magnemann

New Member
Reaction score
5
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:
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]
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? :confused:
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. ;)
 

Omni

Ultra Cool Member
Reaction score
37
its an integer variable
to set it (koboldskilled+1) use arithmetic and enter the red "value" as koboldskilled
 

magnemann

New Member
Reaction score
5
Ok need more help.
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.)
       [b] 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)[/b]
Need help with the stuff in bold
 
B

BuriedSouls

Guest
For the If (All Conditions are True) then do (Then Actions) else do (Else Actions)


thats a just a kind of action... about 10th down or so

(if that helpd in any way?)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top