• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

RPG triggers

Level 6
Joined
Jun 1, 2009
Messages
38
Ok guys this whole page will be nothing but triggers :razz: (Some may not be here like these triggers-Item Drop system,Save/Load System,Respawn System(I know the triggers,I dont know how to make the respawned creatures to drop thier items again))

Quest-Kill creature(s)-Accept
  • Events
  • Unit - A unit come within 180.00 of (Quest Giver)
  • Conditions
  • ((Entering unit) is A Hero) Equal to True
  • Actions
  • (Cinematic is optional,See Cinematics to learn how to make one)
  • Quest - Create an (Required/Optional) quest titled (Quest Name) with the description (Description Here)
Quest-Kill Creatures(s) Kill sequence
  • Events
  • Unit - A unit Dies
  • Conditions
  • (Unit-type of (Dying unit)) Equal to (Creature)
  • Actions
  • Quest - Display to (All players) the Quest message: -(Creature) Kill #/#
  • Trigger - Turn on (Next Kill trigger or Turn in trigger)
  • Wait - Wait 2.00 seconds
  • Trigger - Turn off (This Trigger)
  • (DO THIS REPEATIDLY UNTIL THE QuEST HAS MET ITS END)
Quest-KIll Creature(S)-Turn in
  • Events
  • Unit - A unit comes within 180.00 of (Quest Turn in)
  • Conditions
  • ((Entering unit) is A Hero) Equal to True
  • Actions
  • Quest - Mark (Last Created Quest or a Variable) as Completed
  • Quest - Flash the quest dialog button
  • Hero - Add (Amount of exp you think would be good) to (Entering Unit), (Show/Hide) level-up graphics
  • Player - Add (Amount of Gold) to (Owner of Entering unit)
  • Trigger - Turn off (This trigger)
 
Last edited:
Level 10
Joined
Aug 15, 2008
Messages
720
Trigger are quite rough and second trigger is quite confusing and doesn't make any sense. One of good ways would be:
  • Quest Start OR Complete
    • Events
      • Unit - A unit comes within 180.00 of Troll Headhunter 0024 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Boolean_QuestOn Equal to False
        • Then - Actions
          • -------- ----------------------- --------
          • -------- > Cinematics (Optional) < --------
          • -------- ----------------------- --------
          • Quest - Create a Required quest titled <Furbolgs (Or smthi... with the description <Kill 10 Furbolgs>, using icon path <Your desired icon>
          • Set Integer_RequiredCount = 10
          • Set TheQuest = (Last created quest)
          • Set Boolean_QuestOn = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Boolean_QuestComplete Equal to True
        • Then - Actions
          • Quest - Mark TheQuest as Completed
          • -------- ----------------------- --------
          • -------- > Awards < --------
          • -------- ----------------------- --------
          • Trigger - Turn off (This trigger)
        • Else - Actions
  • Quest Kill Creatures
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Furbolg
      • Boolean_QuestOn Equal to True
    • Actions
      • Set Integer_CurrentCount = (Integer_CurrentCount + 1)
      • Quest - Change the description of TheQuest to (Furbolgs killed + ((String(Integer_CurrentCount)) + (/ + (String(Integer_RequiredCount)))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer_CurrentCount Equal to Integer_RequiredCount
        • Then - Actions
          • Set Boolean_QuestComplete = True
          • Quest - Change the description of TheQuest to You have killed req...
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
Top