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

n00b needs help - triggers in trees and allies

Status
Not open for further replies.
Level 2
Joined
Apr 17, 2010
Messages
12
Ok - fair warning.

I suck at editor. I'm a noob, I don't necessarily program (read as I don't, nor have any knowledge of it), and my extent of wow editing is that I use object editor to compare units and thus figure out what each thing does.

Where I need help -

Two things:

a) I have a map where I have these neutral Night Elves chilling in a forest and when my hero meets them (RPlol) they join forces. Now, this is all storyboard, but I know that during quests, you can have this actually done. My question is... how? I saw that thing in the forces properties that says make rescue-able, but that doesn't seem to do anything... Also, the forces are spread out so if the hero walks towards the main Tree of Life, is there a way to trigger it to turn the entire team at once, or do I need to run by each unit?

b) On another map, I have these dwarves chilling on a mountain top. Naturally resources are scarce, but I was wondering (based on what I saw around here), can you provide a trigger that once trees are cut down, they will regrow? Or is the term respawn?

Anyways, thanks for your help in advance, but bear in mind, I'm mostly ignorant when it comes to triggers, so while I'm not asking for a complete guide in your explanation, please don't leave out any steps. Thanks.
 
Level 3
Joined
Jun 9, 2010
Messages
59
a) I have a map where I have these neutral Night Elves chilling in a forest and when my hero meets them (RPlol) they join forces. Now, this is all storyboard, but I know that during quests, you can have this actually done. My question is... how? I saw that thing in the forces properties that says make rescue-able, but that doesn't seem to do anything... Also, the forces are spread out so if the hero walks towards the main Tree of Life, is there a way to trigger it to turn the entire team at once, or do I need to run by each unit?

Use a simple region trigger such as this (you can make regions by going to the region pallete in your tool pallete window):
  • Events:
  • Unit - a unit enters (region that you placed near tree of life)
  • Conditions:
  • (Owner of (Entering unit) Equal to (whichever player is rescuing units)
  • Actions:
  • Unit Group - Pick every unit in (Owned by player that you set to be rescuable units) and do (Unit - Change ownership of (picked unit) to (whichever player you have rescuing units) and change color)
Basically what this trigger will do is once a unit owned by the player that you want rescuing units enters the region you set near the tree of life all of the units owned by the rescuable player (you must specify this in the trigger) change ownership to the player rescuing them(also must specify in the trigger).

Note that you can change the condition to anything you want really... say maybe you want it to be a specific unit only that can do this then just set it to a specfic unit condition and so on....

As for just making the units resquable here is another simple trigger you could do:

  • Events:
  • Map initialization
  • Conditions:
  • none really needed
  • Actions:
  • Unit Group - Pick every unit in (Owned by player that you set to be rescuable units) and do (Unit - Make (Picked Unit) Rescuable by Player Group (Whichever player you have set to rescue units)
  • Unit - Limit rescue events for (Picked Unit) to a range of X(you specifiy)
This trigger does just as you asked.. make the units of the player that is being rescued to be rescuable.. and the last action of the trigger I dont think is required but is useful if you want to set a different rescuable range for the units than default.

Note that this are very basic triggers for doing what your asking but seeing that you are a begginer you do need very basic triggers to learn off... just tamper with this trigger if your wanting to make it more advance (the trial and error process is the best learning process for most =] )

b) On another map, I have these dwarves chilling on a mountain top. Naturally resources are scarce, but I was wondering (based on what I saw around here), can you provide a trigger that once trees are cut down, they will regrow? Or is the term respawn?

Regrow...respawn both work when dealing with trees and I believe there is either a tutorial or another thread that already answers this subject in the forums/on this site.

Edit: Well I found the tutorial on the site but its written in Jass (which you definitely wouldnt want to start on as a begginer) so heres the link he does explain things quite well but Im sure there is an easier thread/tutorial out there written in GUI for tree respawning (at least i think X{ )

http://www.hiveworkshop.com/forums/jass-ai-scripts-tutorials-280/tree-revival-system-31805/
 
Level 2
Joined
Apr 17, 2010
Messages
12
Thanks so much. I'm doing editor for fun and for story creation, and when it comes to the techno-writing and C++ -stuff I'm completely lost, so thanks.
 
Status
Not open for further replies.
Top