• 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] Trigger Help

Status
Not open for further replies.
Level 7
Joined
Feb 25, 2007
Messages
286
I know you guys have herd this question before. But theres a huge problem when people answer this question. They give me and intelligent answer. And the truth is im not smart lol. So can someone translate what a trigger is? Thanks. I really need to know because im like way over my head in work trying to make a rpg.... pretty stupid for my first map -.-
 
Last edited:
Level 4
Joined
Sep 20, 2005
Messages
72
triggers would be...er...(simple english eh? er....)... an instruction that tells the computer to do a specific thing.
"Bob - walk to the location of the fridge, open the door, and grab a coke. then return it to me." hows that for simple?
to learn about them...well...er... open an existing map (pick a really simple one!) and explore! nothin better than something hands on. besides, the editor uses some plain simple english thats easy to understand. after you get a some idea of what triggers can do for you, read some basic tutorials in the tutorial section.
I'd say the hardest part for someone new to coding/triggering would be understanding what a variable does. <--- read tutorials!

Just put some heart in learning! and dont let yourself get overwhelmed by too much info. take it slow and start with the simple triggers.
 
Level 32
Joined
Oct 23, 2006
Messages
5,291
As V_V_V said, triggers are instructions that the game follows when a trigger is executed.

Triggers have three parts that it is important to understand:
  • Events - Events cause the trigger to start and perform its actions.
  • Conditions - Conditions regulate the trigger so that it applies only to certian specified units, objects regions or other items.
  • Actions - Actions are the instructions that will be executed by the trigger.

Here are some simple examples:


This trigger would replace creeps that are killed after one minute has elapsed.
  • Respawn Creeps
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
    • Conditions
    • Actions
      • Wait 60.00 seconds
      • Unit - Replace (Triggering unit) with a (Unit-type of (Triggering unit)) using The new unit's max life and mana
This trigger would give a Scroll of protection to any Paladin owned by Player 1 when it gains a level.
  • Level Reward
    • Events
      • Unit - A unit owned by Player 1 (Red) Gains a level
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
    • Actions
      • Hero - Create Scroll of Protection and give it to (Triggering unit)
Once again as noted by V_V_V, have fun learning, start simple and get some practice: experience is the best teacher!
 
Status
Not open for further replies.
Top