Quest triggers help

Mcbeazy

New Member
Reaction score
2
Ok so Below I put a category from a quest I am working on. I ran into some problems and wondered if anyone could spot it because I have no idea. Firstly, unlike all my other quests, this exclamation point I give the character does not go away for some reason. Also, when I am removing one item and dropping another, It does not remove the item from the hero's inventory. Finally when I turnt he quest in I receive none of the rewards.....My previous quest is modeled almost the same way and works just fine... Thoughts?

Trigger one
Trigger:
  • exclamation point hidden quest
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Special Effect - Create a special effect attached to the overhead of DewShine 0086 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Set QuestEffects[1] = QuestEffects[1]

trigger 2


Trigger:
  • Quest hidden Spiders
    • Events
      • Unit - A unit comes within 400.00 of DewShine 0086 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Special Effect - Destroy QuestEffects[1]
      • Quest - Display to (All players) the Quest Update message: Stay Back! I may be...
      • Quest - Create a Required quest titled Anti-Dote! with the description Collect 1 Venom fro..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Set AntiVenom[1] = (Last created quest)
      • Trigger - Turn off (This trigger)


Trigger 3
Trigger:
  • AntiVenom
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (AntiVenom[1] is enabled) Equal to True
      • (Item-type of (Item being manipulated)) Equal to Venom
    • Actions
      • Quest - Display to (All players) the Quest Update message: You must now Obtain...


Trigger 4
Trigger:
  • ObtainAnti venom
    • Events
      • Unit - A unit enters Region 015 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to ((Triggering unit) has an item of type Venom)
    • Actions
      • Floating Text - Create floating text that reads *Strange noises fil... at (Center of Region 015 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 2.00 seconds
      • Item - Remove (Item carried by (Triggering unit) of type Venom)
      • Wait 2.00 seconds
      • Item - Create Antidote at (Center of Region 015 <gen>)
      • Quest - Display to (All players) the Quest Update message: Rush this to DewShi...



Trigger 5
Trigger:
  • QuestComplete
    • Events
      • Unit - A unit comes within 200.00 of DewShine 0086 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to ((Triggering unit) has an item of type Venom)
    • Actions
      • Set DewshineComplete[(Player number of (Owner of (Hero manipulating item)))] = (DewshineComplete[(Player number of (Owner of (Hero manipulating item)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DewshineComplete[(Player number of (Owner of (Hero manipulating item)))] Equal to 1
        • Then - Actions
          • Quest - Mark AntiVenom[1] as Completed
          • Quest - Display to (All players) the Quest Update message: Good job you have s...
          • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
            • Loop - Actions
              • Hero - Add 250 experience to (Picked unit), Show level-up graphics
              • Player - Add 200 to (Owner of (Item being manipulated)) Current gold
              • Trigger - Turn off (This trigger)
        • Else - Actions


Trigger 6

Trigger:
  • remove antidote
    • Events
      • Unit - A unit comes within 256.00 of DewShine 0086 <gen>
    • Conditions
      • ((Triggering unit) Equal to (Hero manipulating item)) and ((Item being manipulated) Equal to (Item carried by (Triggering unit) of type Antidote))
    • Actions
      • Wait 2.00 seconds
      • Floating Text - Create floating text that reads Oh Thank you! You h... above DewShine 0086 <gen> with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Item - Remove (Item being manipulated)
      • Wait 3.00 seconds
      • Floating Text - Destroy (Last created floating text)
 

jig7c

Stop reading me...-statement
Reaction score
123
use WC3 tags around your code

wtf?
Trigger:
  • ((Entering unit) is A Hero) Equal to ((Triggering unit) has an item of type Venom)


you need to enable antivenom[1] quest in the previous trigger
Trigger:
  • (AntiVenom[1] is enabled) Equal to True


in that trigger, there is no hero manipulating item
the event is a unit comes within 200 of DewShine...
Trigger:
  • Set DewshineComplete[(Player number of (Owner of (Hero manipulating item)))] = (DewshineComplete[(Player number of (Owner of (Hero manipulating item)))] + 1)


your group leaks

there is no hero manipulating the item, as stated above the event is different
Trigger:
  • Player - Add 200 to (Owner of (Item being manipulated)) Current gold


useless conditon:
Trigger:
  • ((Triggering unit) Equal to (Hero manipulating item))


you need to specify exactly which item.. make an item variable and put the AntiDote in that variable
Trigger:
  • Item - Remove (Item being manipulated)


only use Hero manipulating item in the conditions/actions if the event is related to anything about item...
 

Mcbeazy

New Member
Reaction score
2
haha..now I feel stupid...I didn't notice I did that to be honest. I was skrewing with this on no sleep, but also I have not done many posts how do I WC tag? and also, That mistake doesn't effect two of the stupid problems I am having. I am sure I effed up somewhere else too, but I can't see it. jJust need fresh eyes I think.

Oh, thanks lol, posted as I posted. I will change those, I have not been doing triggers for very long so sometimes I get confused with where I am going with it.
 

jig7c

Stop reading me...-statement
Reaction score
123
haha..now I feel stupid...I didn't notice I did that to be honest. I was skrewing with this on no sleep, but also I have not done many posts how do I WC tag? and also, That mistake doesn't effect two of the stupid problems I am having. I am sure I effed up somewhere else too, but I can't see it. jJust need fresh eyes I think.

Oh, thanks lol, posted as I posted. I will change those, I have not been doing triggers for very long so sometimes I get confused with where I am going with it.

highlight your pasted code and press the small a button for WC3 tags

i have posted more errors... fix those and maybe it might be fixed
 

Mcbeazy

New Member
Reaction score
2
Trigger:
  • exclamation point hidden quest
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Special Effect - Create a special effect attached to the overhead of DewShine 0086 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Set QuestEffects[1] = QuestEffects[1]



Trigger:
  • Quest hidden Spiders
    • Events
      • Unit - A unit comes within 400.00 of DewShine 0086 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Special Effect - Destroy QuestEffects[1]
      • Quest - Display to (All players) the Quest Update message: Stay Back! I may be...
      • Quest - Create a Required quest titled Anti-Dote! with the description Collect 1 Venom fro..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Set AntiVenom[1] = (Last created quest)
      • Trigger - Turn off (This trigger)

Trigger:
  • AntiVenom
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (AntiVenom[1] is enabled) Equal to True
      • (Item-type of (Item being manipulated)) Equal to Venom
    • Actions
      • Quest - Display to (All players) the Quest Update message: You must now Obtain...



Trigger:
  • ObtainAnti venom
    • Events
      • Unit - A unit enters Region 015 <gen>
    • Conditions
      • ((Entering unit) has an item of type Venom) Equal to True
      • Antivenom2[1] Equal to Venom
    • Actions
      • Floating Text - Create floating text that reads *Strange noises fil... at (Center of Region 015 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 2.00 seconds
      • Item - Remove (Item carried by (Triggering unit) of type Venom)
      • Wait 2.00 seconds
      • Item - Create Antidote at (Center of Region 015 <gen>)
      • Quest - Display to (All players) the Quest Update message: Rush this to DewShi...

Trigger:
  • QuestComplete
    • Events
      • Unit - A unit comes within 200.00 of DewShine 0086 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
      • ((Entering unit) has an item of type Antidote) Equal to True
    • Actions
      • Set DewshineComplete[(Player number of (Owner of (Entering unit)))] = (DewshineComplete[(Player number of (Owner of (Entering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DewshineComplete[(Player number of (Owner of (Entering unit)))] Equal to 1
        • Then - Actions
          • Quest - Mark AntiVenom[1] as Completed
          • Quest - Display to (All players) the Quest Update message: Good job you have s...
          • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
            • Loop - Actions
              • Hero - Add 250 experience to (Triggering unit), Show level-up graphics
              • Player - Add 200 to (Owner of (Triggering unit)) Current gold
              • Trigger - Turn off (This trigger)
        • Else - Actions


Trigger:
  • remove antidote
    • Events
      • Unit - A unit comes within 256.00 of DewShine 0086 <gen>
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
      • ((Entering unit) has an item of type Venom) Equal to True
    • Actions
      • Wait 2.00 seconds
      • Floating Text - Create floating text that reads Oh Thank you! You h... above DewShine 0086 <gen> with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Item - Remove (Item carried by (Entering unit) of type Venom)
      • Wait 3.00 seconds
      • Floating Text - Destroy (Last created floating text)




Ok so I changed all of those, and hopefully now that I get it this is more on track. Now that I did this though, my region event where venom turns into anti-venom doesn't work at all. It doesn't display txt, It doesn't make the anti-dote, and it doesn't remove item....ugh I am so lost :banghead: I am doing something horribly wrong

EDIT: accidentally messed up the pasting some how
 

jig7c

Stop reading me...-statement
Reaction score
123
now that you got the WC3 tag thing down, lets work on posting the correct triggers...

you have 6 of the same triggers...

the condition in the above 6 triggers are screwed up...

from:
((Triggering unit) Equal to (Hero manipulating item)) and ((Item being manipulated) Equal to (Item carried by (Triggering unit) of type Antidote))

to:
(Item-type carried by (Triggering unit) equal to Antidote)
 

Mcbeazy

New Member
Reaction score
2
lol, ya not sure what I did, but it dud the same one 6 times on accident noticed, and changed =) sorry about that lol.
 

jig7c

Stop reading me...-statement
Reaction score
123
in your first trigger...

wtf? shouldn't it be Last Created Effect
Trigger:
  • Set QuestEffects[1] = QuestEffects[1]


in your second trigger... (i'm actually not familiar with quest..) but is there an action that says Enable Quest? if so, you need to
Trigger:
  • Enable AntiVenom[1]

in your fourth trigger, in the conditions
Trigger:
  • Antivenom2[1] Equal to Venom

what does that mean?
and
Set Point = (Center of Region 015 <gen>)
...actions... replace all the (Center of Region 015 <gen>) with the location variable Point
Custom script: call RemoveLocation (udg_Point)

in your fifth trigger
replace this:
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
    • Loop - Actions
      • Hero - Add 250 experience to (Triggering unit), Show level-up graphics
      • Player - Add 200 to (Owner of (Triggering unit)) Current gold
      • Trigger - Turn off (This trigger)

with:
Trigger:
  • Set Tempgroup = (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True))
    • Unit Group - Pick every unit in (Tempgroup) and do (Actions)
      • Loop - Actions
        • Hero - Add 250 experience to (Picked unit), Show level-up graphics
        • Player - Add 200 to (Owner of (Picked unit)) Current gold
    • Custom script: call DestroyGroup (udg_Tempgroup)
    • Trigger - Turn off (This trigger)
 

Mcbeazy

New Member
Reaction score
2
in your first trigger...

Trigger:
  • Set Tempgroup = (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True))
    • Unit Group - Pick every unit in (Tempgroup) and do (Actions)
      • Loop - Actions
        • Hero - Add 250 experience to (Picked unit), Show level-up graphics
        • Player - Add 200 to (Owner of (Picked unit)) Current gold
    • Custom script: call DestroyGroup (udg_Tempgroup)
    • Trigger - Turn off (This trigger)


Thank you for all of your help! I just got on and checked, and almost everything works properly now, the only thing that doesnt is the experience to heroes portion. I don't know how to do JASS or anything like that, so not sure what I am supposed to do from here.

Trigger:
  • QuestComplete
    • Events
      • Unit - A unit comes within 200.00 of DewShine 0086 &lt;gen&gt;
    • Conditions
      • ((Entering unit) is A Hero) Equal to True
      • ((Entering unit) has an item of type Antidote) Equal to True
    • Actions
      • Set DewshineComplete[(Player number of (Owner of (Entering unit)))] = (DewshineComplete[(Player number of (Owner of (Entering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DewshineComplete[(Player number of (Owner of (Entering unit)))] Equal to 1
        • Then - Actions
          • Set TempGroup[1] = (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True))
          • Unit Group - Pick every unit in TempGroup[1] and do (Actions)
            • Loop - Actions
              • Hero - Add 250 experience to (Picked unit), Show level-up graphics
              • Player - Add 200 to (Owner of (Picked unit)) Current gold
              • Trigger - Turn off (This trigger)
          • Quest - Mark AntiVenom[1] as Completed
          • Quest - Display to (All players) the Quest Update message: Good job you have s...
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top