Quest kill countdown

hasslarn

New Member
Reaction score
20
hi how do i make a quest that countdown how many mobs you killed

Example:

New Quest ; Kill 5 bandit

a Countdown thing comes in the map where it says "Bandits Left:5" so when you kill 1 bandits it gets "Bandits Left:4" like it counts when you kill a unit
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
from my first impression, you should be able to make a variable for the quest and make a trigger that adds +1 when a bandit is killed. then when the variable reaches i guess,5, display some txt telling that the thing is done and then turn on the trigger that allows for compleation fo it... like a unit that you click or somthing...:D

a Countdown thing comes in the map where it says "Bandits Left:5" so when you kill 1 bandits it gets "Bandits Left:4" like it counts when you kill a unit
*or if you want it to display the opposite,( up above this), make the variable at first, 5. then after killing a bandit make it -1 from the variable and display the text :
bandits left:<variable>
 

MurderMode

Giving new meaning to co-op... slowly
Reaction score
154
If it's just for a single player game or a whole team at once u can do it kind of like this.

just create an integer variable for the quest, call it bandit_count or something. then make a trigger as follows -

Code:
Bandit Quest
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Bandit
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Bandit_Count Less than 5
            Then - Actions
                Set Bandit_Count = (Bandit_Count + 1)
                Game - Display to (Owner of (Killing unit)), at offset (0.00, 0.00) for 3.00 seconds the text: (Bandits killed: + (String(Bandit_Count)))
            Else - Actions
                Game - Display to (Owner of (Killing unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Bandit Quest Complete!

This is just the text part for your quest tho, there is more u will need to do to make the quest function... and if more then 1 player can do the quest at a time then it's a bit more complicated then that.
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
If it's just for a single player game or a whole team at once u can do it kind of like this.

just create an integer variable for the quest, call it bandit_count or something. then make a trigger as follows -

Code:
Bandit Quest
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Bandit
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Bandit_Count Less than 5
            Then - Actions
                Set Bandit_Count = (Bandit_Count + 1)
                Game - Display to (Owner of (Killing unit)), at offset (0.00, 0.00) for 3.00 seconds the text: (Bandits killed: + (String(Bandit_Count)))
            Else - Actions
                Game - Display to (Owner of (Killing unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Bandit Quest Complete!

This is just the text part for your quest tho, there is more u will need to do to make the quest function... and if more then 1 player can do the quest at a time then it's a bit more complicated then that.

acualy, the way i sied, i ment for multiplayer and i find it alot simpler. though it is teamed. so if anyone kills a bandit then it adds to the killcount
 
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