• 🏆 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!

[Trigger] heyy i need some help with this

Status
Not open for further replies.
Level 5
Joined
Aug 17, 2008
Messages
125
im have made my map(how it looks and stuff) now the thing is i need to make questes i know how to make them but not how to make them like Player1 kills 10 wolfs or something like that and when they meet a npc they can get the quest so how do i that (i hope you understand it):)
 
Level 9
Joined
Sep 5, 2007
Messages
358
-first you must make an integer variable to store how many wolfs the player 1 has killed.
-second, create a trigger like this:
  • A wolf die
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Wolf
      • (Owner of (Killing unit)) Equal to Player 1 (Red)
    • Actions
      • Set killCount = (killCount + 1)
-in this same trigger, create a if then else action to check if the value of the variable is equal to 10. if it is, close this trigger.
-The rest you know what to do, I guess.
-for the NPC chat, just make this:
  • NPC Chat
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Unit-type of (Target unit of issued order)) Equal to Footman
      • (Owner of (Ordered unit)) Equal to Player 1 (Red)
    • Actions
-Now the actions are up to you.

Hope I helped.:grin:
 
Status
Not open for further replies.
Top