Questing Difficulties

Drabstar

New Member
Reaction score
2
Hi
I am pratically a n00bie to the editor (I do know the basics however like unit position, simple terraining ect.)

I am trying to learn how to use triggers correctly (But never truely understand them and how they work)

My question is how to do a simple quest (in trigger)
*Sorry but I just can't figure it out after trying for the past 3 hours so I said to hell with it and just ask*

I want it to be like this:
(Its quite simple because I want to understand how it works before I go into advance questing)

A footman lost his belt and he wants you to find it in the woods
If you find it the quest will tell you to bring it back to him
Once you do he gives you a Health potion.
 

Hildagarn

Member
Reaction score
20
here you go
Code:
Untitled Trigger 001
    Events
        Unit - A unit comes within 256.00 of No unit
    Conditions
    Actions
        Quest - Create a Optional quest titled Lost Belt with the description Find the belt, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp

Code:
Untitled Trigger 002
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item being manipulated) Equal to (Last created item)
    Actions
        Quest - Change the description of (Last created quest) to Take the belt back ...
        Trigger - Turn on (This trigger)


Code:
Untitled Trigger 003
    Events
        Unit - A unit comes within 256.00 of No unit
    Conditions
    Actions
        Quest - Mark (Last created quest) as Completed
        Item - Create Potion of Greater Healing at (Position of No unit)

and change the "last created unit" or "no unit"
 

Drabstar

New Member
Reaction score
2
A slight problem...

Unit - A unit comes within 256.00 of No unit
This was used twice

When this happens to earn the quest, it gives me the potion before I even complete it :(

Any suggestions :D?
 

dannyboydude

Ultra Cool Member
Reaction score
33
use a boolean to set the quest active = true

next check if the quest boolean is true

then check if the unit has the belt , remove it and give him his potion .
 

Hildagarn

Member
Reaction score
20
A slight problem...


This was used twice

When this happens to earn the quest, it gives me the potion before I even complete it :(

Any suggestions :D?

make the second one not inintially on....then when you pick up the belt, turn it on using "trigger turn on"
 
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