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

Help with triggers.

Status
Not open for further replies.
Level 2
Joined
Jul 29, 2007
Messages
16
Okay im ive already mentioned my legend of narief orpg and this morning i figured out it was ok to name it Legend Of Zelda orpg *hits self in head* dumb me...

anyway you know on the ocarina of time how when you go to Hyrule at night time the bridge is raised up? and at day time its down? i want a trigger to do that. and for units like zombies to come up at grass at night time...

another thing i need help with is the item dropping. i want the boss for the Forest Temple To Drop Nature Items... Nature Helm, Nature Shield, Etc... except at random and he respawns every 3 minutes in same location.. same for the other temples i know i ask alot of question.. my bad and is there any way to make the camera stay the way it is when you scroll in on the map? that looks like the real zelda game to me.. but if you want to use wc3 camera thingy to type -cam2 (but i know how to do that i think tell me just incase)

well thanks for any help.
 
Level 6
Joined
Feb 2, 2005
Messages
205
I have no warcraft in front of me, but you will have to do those trigger based on "time of the day". So you can see if its night or not.

The droppping stuff is quit easy to do, detect killed unit, compare the type is equal your daraggen, drop item (to a good result do an array for the itemdrops and drop an random item witch " create 1 dropiten[random number between 4 to 11]"
 
Level 6
Joined
Feb 2, 2005
Messages
205
Okay let me explain the Time of Day Stuff

  • Nightshift
    • Events
      • Game - The in-game time of day becomes Equal to 19.00
      • -------- you may change the time so it fits the night shift correctly --------
    • Conditions
    • Actions
      • Trigger - Turn on Undeadspawn <gen>
      • -------- Activated the Trigger Spawn Undead --------
      • Destructible - Close Door 0000 <gen>
      • -------- closes the door --------
      • Destructible - Make Dämonentor (Horizontal) 0000 <gen> Invulnerable
      • -------- makes the door invulnerable --------
  • Undeadspawn
    • Events
      • Time - Every 5.00 seconds of game time
      • -------- fires every 5 seconds --------
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (In-game time of day) Greater than or equal to 5.00
          • (Number of units in (Units in (Playable map area))) Greater than or equal to 8
          • -------- Limits the spawn to 8 within the rect --------
    • Actions
      • Unit - Create 1 Soldat for Neutral Hostile at (Random Point in Rect001) facing Default building facing (270.0) degrees
      • -------- Create 1 Zombie every 5 seconds up to 8 --------
      • If ((In-game time of day) Greater than or equal to 5.00) then do (Trigger - Turn off (This trigger)) else do (Do nothing)
      • -------- Turns of the Trigger at 5 --------
  • Spawn Items
  • Events
    • A Unit Dies
    • -------- fires when a any Unit Dies --------
  • Conditions
    • (Unit-type of (Dying unit)) Equal to DragonOfDoom
    • -------- Fires only if the unit is an DragonOfDoom --------
  • Actions
    • Item - Create dropItem[(Random integer number between 5 and 15)] at (Position of (Dying unit))
    • -------- Creates an Item out of an Item-Type array with the math random --------
For mor infos on Arrays go into the tutorial section they are quite usefull. Hope this helps a littel more, those are handwritten triggers, i cant look them up sry, so there are might have different name from the real Trigger. I'll look em up as soon as i'm home, which will takes some hours....

Edit: as promissed i post the corrected Triggers, here ya go :)
 
Last edited:
Level 2
Joined
Jul 29, 2007
Messages
16
Okay, ive done those now i have a new thing i need help with. i want a commeand where you type -Challenge Red And this thing pops up for red Accept or Decline Challenge, then if he accepts teleport to arena, and only 2 people allowed in arena at a time, and if he declines do nothing. and the camera thing i will do there.
 
Status
Not open for further replies.
Top