quest reward help

Mcbeazy

New Member
Reaction score
2
So my entire little chain of triggers for this quest works fine and the quest completes as it is supposed to, but instead of the amount of gold I am supposed to get, I get like over 2k and from lvl2 to lvl 15 instantly....any ideas?


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 200 experience to (Picked unit), Show level-up graphics
              • Player - Add 100 to (Picked player) Current gold
              • Trigger - Turn off (This trigger)
          • Trigger - Turn off (This trigger)
        • Else - Actions
 

jig7c

Stop reading me...-statement
Reaction score
123
glad to see most of your quest is working!

you are probably getting so much more XP and so much more gold because there might be another trigger related to when the same event...

also you are leaking a group
and you don't need 2x Turn off (This trigger); take the first one out, the second one outside the loop stays...

is your map multiplayer or single player?
 

Mcbeazy

New Member
Reaction score
2
woops didn't realize I had put two turn off triggers lol. Also, I have 3 triggers that say

Trigger:
  • remove antidote
    • Events
      • Unit - A unit comes within x(all different ranges) of DewShine 0086 <gen>


but none of them deal with XP, so why would they make it so much more?

EDIT: My map is eventually (hopefully) going to be a multi player map, and also I have no idea how to fix leaks, I am Jass illiterate =(
 

jig7c

Stop reading me...-statement
Reaction score
123
possibly in the Gameplay Constants... where you define how much XP is needed to go to the next level... check there...
set the number to a higher number!
 

Mishtiff

New Member
Reaction score
0
i think it has to do with the loop. try "endloop" after the loop and it should work fine? (where you have the turn off trigger)
 

Mcbeazy

New Member
Reaction score
2
Where is endloop? Is it a custom script, or am I just blind? I don't know Jass, I have tried, but still have no idea how to do it, so if it is in Jass, the trigger will stay broken haha
 

Seprest

New Member
Reaction score
15
Just to clarify for myself.

Wouldn't the loop end if he took out the trigger end action and it ran its natural course?
 

Mcbeazy

New Member
Reaction score
2
thanks, how do I implement it into my map? do I make each line a custom script? =( feel so stupid when it comes to jass
 

Chaos_Knight

New Member
Reaction score
39
Just to clarify for myself.

Wouldn't the loop end if he took out the trigger end action and it ran its natural course?

No it would be an infinty loop.

Mcbeazy: Just use Custom Script. The write: endloop set this custom script Before turn off this trigger(the first one). Maybe it will work
:D
 

Mcbeazy

New Member
Reaction score
2
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 200 experience to (Picked unit), Show level-up graphics
              • Player - Add 100 to (Picked player) Current gold
              • Custom script: endloop
          • Trigger - Turn off (This trigger)
        • Else - Actions


error, turned off trigger =(
 

Mishtiff

New Member
Reaction score
0
okay man, take the endloop you have made and put it in place of the "turn off trigger" that you have. get rid of the turn off this trigger and you should be golden. i hope =]
 

jig7c

Stop reading me...-statement
Reaction score
123
you don't need endloop in GUI...
it ends the loop automatically when it cycle's through all the possible match

you only need endloop in jass!

please remove the endloop, it'll cause more bugs!
 

Guest3z

New Member
Reaction score
22
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 200 experience to (Picked unit), Show level-up graphics
    • Player - Add 100 to (Picked player) Current gold
You have Picked Player in a unit group, its not a player group. Try Owner of Picked unit instead
 
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

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top