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

RPG Help - Quests (when unit is within range)

Status
Not open for further replies.
Level 3
Joined
Jun 18, 2008
Messages
30
Aight, make it clear Ive already read the other posting of this on here, I believe that posting fails. Sorry, thats a bit rude.
Alright. I want it so that if a unit comes close enough to a unit, it gives them a quest. I need the quest objectives trigger and completion trigger.
An example quest would be kill 5 bandits.
then i would need to return it for 20 gold and 100 experience or something!
Help me, make me something like that and Ill work from there!
 
Level 25
Joined
Mar 23, 2008
Messages
1,813
Gaining the quest:
  • Quest
    • Events
      • Unit - A unit comes within 250.00 of *Your QuestGiver*
    • Conditions
    • Actions
      • Quest - Create a Required quest titled *Your Quest* with the description *Your Description*, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Quest - Flash the quest dialog button
Kill Bandits:
  • Killing
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Bandit
    • Actions
      • Set Bandits_Killing_Var = (Bandits_Killing_Var - 1)
      • Game - Display to (All players) the text: (Bandits left to kill: + (String(Bandits_Killing_Var)))
Done with killing:
  • Completion
    • Events
    • Conditions
      • Bandits_Killing_Var Less than or equal to 0
    • Actions
      • Quest - Mark Bandit_Quest as Completed
      • Game - Display to (All players) the text: You have killed all...
      • Trigger - Turn off Killing <gen>
Gaining Reward:
  • Reward
    • Events
      • Unit - A unit comes within 250.00 of *Your QuestGiver*
    • Conditions
      • Bandits_Killing_Var Less than or equal to 0
    • Actions
      • Quest - Mark Bandit_Quest as Completed
      • Hero - Add 100 experience to (Triggering unit), Hide level-up graphics
      • Player - Add 20 to (Owner of (Triggering unit)) Current gold
I think that will do it, im not so used making quests but try this :)
 
Status
Not open for further replies.
Top