Quests help

kvasir

New Member
Reaction score
2
I created an RPG (well it's not ready yet) and I used Husky's tut for the Quests but they just don't work! I don't know why. Maybe someone can tell me a better way to create quests.
Thx
 

Immolation

Member
Reaction score
20
Trigger:
  • Quest
    • Events
    • <your event>
      • Conditions
    • <your conditions>
      • Actions
    • Quest - Create a <your type> quest titled <your name> with the description <your description> , using icon path <your icon>.


As simple as that.
 

snox-wacco

New Member
Reaction score
0
Trigger:
  • Quest
    • Events
    • <your event>
      • Conditions
    • <your conditions>
      • Actions
    • Quest - Create a <your type> quest titled <your name> with the description <your description> , using icon path <your icon>.


As simple as that.

Thats not a quest :p
Thats only in the menu,
if you wanna make one where u need too kill 10 then make a variable with array, when a unit dies it will 1+ to the number of players variable, when the number equal to 10 then make Variable and set it as true that he had made the quest. and give reward :D Did i help? xD
 

Immolation

Member
Reaction score
20
That's a quest. He didn't say: I don't get how to make a quest where I have to kill 10 enemies with an array variable :nuts:
 

kvasir

New Member
Reaction score
2
thats exactly the point - using Husky's tut the counter counts just the first unit then forgets the rest!
 

satino

Member
Reaction score
4
Here the simplest reply I can make :p
-Variables :
Trolls Killed (Integer) you can name it something other.
Troll Hunt Quest (Quest)
Here an easy way :
Code:
Quest Accepted
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
        (Triggering unit) Equal to (==) Knight 0000 <gen>
    Actions
        Quest - Display to (All players) the Quest Discovered message: <your message>
        Quest - Create a Required quest titled <Your Title> with the description <Your description>, using icon path <Your Icon>
        Set Troll_Hunt_Quest = (Last created quest)
        Trigger - Turn on Troll Killed <gen>
        Trigger - Turn off (This trigger)

Code:
Troll Killed
    Events
        Unit - A unit Dies
    Conditions
         Multiple ConditionsOr - Any (Conditions) are true
            Conditions
                (Unit-type of (Dying unit)) Equal to (==) Forest Troll
                (Unit-type of (Dying unit)) Equal to (==) Forest Troll Shadow Priest
    Actions
        Set Trolls_Killed = (Trolls_Killed + 1)
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Trolls_Killed Equal to (==) 10
            Then - Actions
                Trigger - Turn off (This trigger)
                Trigger - Turn on Reward <gen>
            Else - Actions

Code:
Reward
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
        (Triggering unit) Equal to (==) Knight 0000 <gen>
    Actions
        Quest - Display to (All players) the Quest Discovered message: <your message>
        Trigger - Turn off (This trigger)
        Quest - Mark Troll_Hunt_Quest as Completed
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Player - Add 75 to (Picked player) Current gold
Remember that Troll Killed Trigger and Reward Trigger must be Initially off
 
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