• 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.

[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