• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Quest Completion broken

Status
Not open for further replies.
Level 17
Joined
Jun 17, 2010
Messages
2,275
Well when somone does this quest, it works it can be accepted and u can collect the needed things, but when your done and go to complete it, it doesnt work. Ive looked over the trigger over and over again, but i just cant seem to find it.

  • Vengeance
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • (Unit-type of (Sold unit)) Equal to Vengence
    • Actions
      • Unit - Remove (Sold unit) from the game
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VengenceCount Equal to 0
        • Then - Actions
          • Quest - Display to OwnerOfHoB_PG the Quest Update message: |cffffcc00Zoologica...
          • Set VengenceCount = 1
          • Trigger - Turn on Fang Count <gen>
          • Trigger - Turn on Fang Drop <gen>
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Selling unit) Equal to Zoological 0080 <gen>
            • Then - Actions
              • Quest - Display to OwnerOfHoB_PG the Quest Update message: |ccff0000Only for t...
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • VengenceCount Equal to 2
                • Then - Actions
                  • Quest - Display to OwnerOfHoB_PG the Quest Update message: |cffffcc00You have ...
                • Else - Actions
                  • Quest - Display to OwnerOfHoB_PG the Quest Update message: |cffffcc00You have ...
  • Fang Count
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Frost Wolf Pup
      • (Random integer number between 1 and 100) Less than or equal to 50
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • FangCount Less than 11.00
        • Then - Actions
          • Set FangCount = (FangCount + 1.00)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • FangCountInt Less than 11
        • Then - Actions
          • Set FangCountInt = (FangCountInt + 1)
        • Else - Actions
  • Fang Drop
    • Events
      • Game - FangCount becomes Equal to 1.00
      • Game - FangCount becomes Equal to 2.00
      • Game - FangCount becomes Equal to 3.00
      • Game - FangCount becomes Equal to 4.00
      • Game - FangCount becomes Equal to 5.00
      • Game - FangCount becomes Equal to 6.00
      • Game - FangCount becomes Equal to 7.00
      • Game - FangCount becomes Equal to 8.00
      • Game - FangCount becomes Equal to 9.00
      • Game - FangCount becomes Equal to 10.00
    • Conditions
      • FangCount Less than 11.00
    • Actions
      • Quest - Display to OwnerOfHoB_PG the Quest Update message: (You've found an intact wolf fang: + ((String(FangCountInt)) + /10))
  • Vengeance Finish
    • Events
      • Unit - A unit enters Vengence Start <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • FangCount Equal to 10.00
    • Actions
      • Set VengenceCount = 2
      • Quest - Display to OwnerOfHoB_PG the Quest Update message: Crickey! You did it...
      • Hero - Create Seal Skin Boots and give it to HoB
      • Trigger - Turn off Fang Count <gen>
      • Trigger - Turn off Fang Drop <gen>
      • Trigger - Turn off (This trigger)
 
First off, you do not need the trigger "Fang Drop". Just do the following modifications in your Fang Count trigger:
  • Fang Count
  • Events
    • Unit - A unit Dies
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Frost Wolf Pup
    • (Random integer number between 1 and 100) Less than or equal to 50
  • Actions
    • Quest - Display to OwnerOfHoB_PG the Quest Update message: (You've found an intact wolf fang: + ((String(FangCountInt)) + /10))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • FangCount Less than 10.00
      • Then - Actions
        • Set FangCount = (FangCount + 1.00)
        • Set FangCountInt = (FangCountInt + 1)
      • Else - Actions
        • Trigger - Turn off (This trigger)
This looks better, right? :]

Anyway, your problem lies in this condition:
  • FangCount Equal to 10.00
Why? Because, in your trigger Fang Count, you use the condition:
  • FangCount Less than 11.00
FangCount Less than 11.00 means that maximum fangs are 11, not 10; this is the reason why in the modified trigger I gave you the condition says "Less than 10.00", which means that maximum fangs can be 10. To solve this, use any of the following conditions:

1)
  • FangCount Equal to 10.00
2)
  • FangCount Greater than or Equal to 10.00
 
Status
Not open for further replies.
Top