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

Ways to Rescue Units and make Quest

Status
Not open for further replies.
Level 3
Joined
Mar 23, 2015
Messages
32
I am making a map in which there are several prisoners around the map. The player has the option of rescuing these units:
-Prisoners are their own Force and neutral to everyone
-Some are behind gates while others are on their own
-Don't know how to use regions? What are regions?

Could anybody give me tips on how to make units rescueable (Show me all the ways to do it)? How do I make a quest out of it?
 
Level 5
Joined
Apr 27, 2014
Messages
87
first, you should change the "prisoners"'s faction to neutral passive, you would not want them to attack you after you rescued them
about regions, you could check this tutorial for a basic knowledge: http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/basic-knowledge-regions-194687/

as for the regions, you should add some around your prisoners

now i will show you how i do it, note that this is my own way, i'm sure there are many more ways out there
first do this trigger for quest

  • quest
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Quest - Create a Required quest titled The Rescue with the description Rescue the villager..., using icon path ReplaceableTextures\CommandButtons\BTNEnsnare.blp
      • -------- you can change if the quest is required and optional --------
      • Quest - Display to (All players) the Quest Discovered message: you got a quest! pr...
now do that to "trap" the prisoners
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Special Effect - Create a special effect at (Position of Villager (Male 2) 0001 <gen>) using Abilities\Spells\Orc\Ensnare\ensnareTarget.mdl
      • Set Ensare1 = (Last created special effect)
      • Special Effect - Create a special effect at (Position of Villager (Male 2) 0002 <gen>) using Abilities\Spells\Orc\Ensnare\ensnareTarget.mdl
      • Set Ensare2 = (Last created special effect)
      • Special Effect - Create a special effect at (Position of Villager (Male 2) 0003 <gen>) using Abilities\Spells\Orc\Ensnare\ensnareTarget.mdl
      • Set Ensare3 = (Last created special effect)
now this to remove the "trap" when your unit enters the region, and prevent lacking
  • Untitled Trigger 002
    • Events
      • Unit - A unit enters rescue 1 <gen>
    • Conditions
      • (Entering unit) Equal to Swordsman 0004 <gen>
    • Actions
      • Special Effect - Destroy Ensare1
  • Untitled Trigger 002 Copy
    • Events
      • Unit - A unit enters rescue 2 <gen>
    • Conditions
      • (Entering unit) Equal to Swordsman 0004 <gen>
    • Actions
      • Special Effect - Destroy Ensare2
  • Untitled Trigger 002 Copy 2
    • Events
      • Unit - A unit enters rescue 3 <gen>
    • Conditions
      • (Entering unit) Equal to Swordsman 0004 <gen>
    • Actions
      • Special Effect - Destroy Ensare3
i'm not really sure how to end the quest, maybe you should wait for someone else
here is the map: http://www.hiveworkshop.com/forums/pastebin.php?id=se296p
 
Level 17
Joined
Dec 11, 2014
Messages
2,004
Regions Quick Guide:
Regions (Also referred to ''rects'' in JASS) Specify a Part of a map. the have Soooo many uses:
Waygates
Gates
Etc.


In order to make one, Go to regions tab in Tool palette (The one with terrain, doodads, units, regions and cameras) and select ''Add''. Then Select the Corners of the Rectangle region you want. Then Double Click the Region (it is seen in the Terrain or In the Regions tab) and Customize what you want. (Name, X, Y, Color, Weather effects and Custom ambients)

Also, You can refer to them in Triggers. (Beware of the leaks BTW)
  • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 000 <gen>) facing Default building facing degrees
They are Extremely useful.

About quests:

http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/how-make-simple-quest-we-show-info-noob-tutorial-187964/

http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/quests-6175/

http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/quick-tutorial-common-triggering-tips-190802/
 
Status
Not open for further replies.
Top