• 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] Whats wrong?

Status
Not open for further replies.
Level 10
Joined
Jul 31, 2008
Messages
477
Hello, I'm having a little problem with my campaign.

In a cinematic a few workers are supose to build stuff, but they dont =/

This is my trigger:
  • Build
  • Events
    • -
  • Conditions
    • -
  • Actions
    • Unit - Order Peasnant 0009 <gen> to build a Town Hall at (Center of TownHall <gen>)
And the same thing with farms, scout towers and barracks...
 
Level 10
Joined
Jul 31, 2008
Messages
477
We might want too se that too. Also your trigger leaks. But I have the idea you are using custom buildings which are not working for some reason

1. The trigger runs, because i have an action in the trigger wich orders some units to walk to a place, and a camera too apply.

2. Where does my trigger leak?

3. No, im not using cusom buildings...
 
Level 7
Joined
Mar 29, 2009
Messages
139
i think i know whats wrong!
When a cinematic is going on, if a unit transmission is going on, other triggers won't do the things before the unit transmission is over. check that.

Or, if it's no cinematic going on while building, ignore what i said.
 
Level 19
Joined
Oct 29, 2007
Messages
1,184
Leak means that there will be left unused data after use that might cause lag. What you wanna do is create a location variable and name it fo r instance ''tmp_loc'' without quotes. Then use it.

  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set tmp_loc = (Where you want the location to be)
      • -------- Then use the variable tmp_loc for whatever you want --------
      • Custom script: call RemoveLocation(udg_tmp_loc)
That way it wont leak and no lag.
 
Level 19
Joined
Oct 29, 2007
Messages
1,184
Well that's up to you. It's a variable. You set it to what you want it to be and it is it, you know what I'm saying? :p Well.. Here are two examples of how you can use it:

  • Set tmp_loc = (Center of REGION <gen>)
  • Set tmp_loc = (tmp_loc2 offset by 500.00 towards (Facing of Player[1]) degrees)
These are some random examples. tmp_loc2 is another location variable.
 
Status
Not open for further replies.
Top