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

Fast question!

Status
Not open for further replies.
Level 15
Joined
Aug 11, 2009
Messages
1,606
Ok,i have a fast question about making something in map.I got a creep spawning trigger create XX units to XX location.The location is just in front of some barracks.Is there any way to make barracks like they are training the unit?For example when you train an unit in classical "melee maps" the barracks have some lights or so.I want to make barracks look like this,AND i don't want to use the Order unit to train XX unit...i just want to have this "animation".Any ideas?
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
Ok,i guess that's what i did wrong...let me test it :)
EDIT:eek:k it still doesn't work...Here is my trigger
  • SetBarrackAnims
    • Events
      • Time - Every 25.00 seconds of game time
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Triggering unit) is A structure) Equal to True
          • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Animation - Play Blood Elf Arcane Sanctum 0048 <gen>'s stand work animation
      • Animation - Play Blood Elf Barracks 0047 <gen>'s stand work animation
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
There's no <triggering unit> for periodic event.

Perhaps you should create a unit group picking all structures of P1, and then making them do that animation.


  • Conditions
    • And - All (Conditions) are true
      • Conditions
        • ((Triggering unit) is alive) Equal to True
        • ((Triggering unit) is A structure) Equal to True
is the same as

  • Conditions
    • ((Triggering unit) is alive) Equal to True
    • ((Triggering unit) is A structure) Equal to True

except that the latter is faster to execute.
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
Ok,then i remove the condtions and it works...but still that's not exactly what i want.My creeps are spawned each 35 seconds,so i want the animation to start every 25 second and turn off after 10 seconds(when creeps are spawned).I can use the wait 10 seconds command and then turn off this trigger,but this way it won't play the animation never again.Any suggestions about it?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
How about this:

  • Untitled Trigger 011
    • Events
      • Time - Every 25.00 seconds of game time
    • Conditions
    • Actions
      • Animation - Play Barracks 0114 <gen>'s stand work animation
      • Wait 10.00 seconds
      • Unit - Create 1 Footman for Player 1 (Red) at (Position of Barracks 0114 <gen>) facing Default building facing degrees
      • Animation - Play Barracks 0114 <gen>'s stand animation
Don't leave the location leak in there.
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
No,Maker that's not what i meant.My creep spawning trigger are already made,i just want to use the animation to make the creeps created be like they were trained by the barracks.So...My trigger spawns creeps every 35 seconds.
I want to play the stand animation every 25 seconds-wait 10 seconds(reach 35 where my creeps spawn)-and then stop playing the stand animation.It should start again...after 25 seconds.That's the problem i'm having:hohum:
Any trigger help on doing this?(just animations)
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
And he already told you the answer please start using your brain!
(sorry for that sentence but it's true)

I'm sorry if that seemed strange or even stupid to you,but i already had Maker to do a check in my creep spawning trigger for leaks...So that's why i said this!So telling my stupid,doesn't make you smarter.It just shows you should talk much when you don't know much!
 
Level 8
Joined
Feb 15, 2009
Messages
463
I never said you are stupid just to use brain(and i also said sorsy) in this case you got the solution so why don't use it then he posted the right thing just kick the create footman function out and your solution is there (that's what i meant with brain , being a bit capable of thinking about problems oneself -- yeah i know my grammar is wrong =D btw check your reputation there 's a message for you)
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
*Sry about double post,but trigger still doesn't work*
Here is my trigger:
  • Creep SpawnElf
    • Events
      • Time - Every 25.00 seconds of game time
    • Conditions
      • SpawnStrongT1 Equal to False
    • Actions
      • Animation - Play Blood Elf Arcane Sanctum 0048 <gen>'s stand work animation
      • Animation - Play Blood Elf Barracks 0047 <gen>'s stand work animation
      • Animation - Play Blood Elf Arcane Sanctum 0325 <gen>'s stand work animation
      • Animation - Play Blood Elf Barracks 0045 <gen>'s stand work animation
      • Wait 10.00 game-time seconds
      • Unit - Create 2 Blood Elf Swordman for Player 1 (Red) at (Center of Creep Start1 <gen>) facing Default building facing degrees
      • Unit - Create 1 Blood Elf Knight for Player 1 (Red) at (Center of Creep Start1 <gen>) facing Default building facing degrees
      • Unit - Create 2 Blood Elf Archer for Player 1 (Red) at (Center of Creep Start1 <gen>) facing Default building facing degrees
      • Unit - Create 1 Blood Elf Priest for Player 1 (Red) at (Center of Creep Start1 <gen>) facing Default building facing degrees
      • Unit - Create 2 Blood Elf Swordman for Player 1 (Red) at (Center of Creep Start2 <gen>) facing Default building facing degrees
      • Unit - Create 1 Blood Elf Knight for Player 1 (Red) at (Center of Creep Start2 <gen>) facing Default building facing degrees
      • Unit - Create 2 Blood Elf Archer for Player 1 (Red) at (Center of Creep Start2 <gen>) facing Default building facing degrees
      • Unit - Create 1 Blood Elf Priest for Player 1 (Red) at (Center of Creep Start2 <gen>) facing Default building facing degrees
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
because your event sets no triggering unit and the conditions are therefore never true (sometimes could be yes i know but just in lucky undefined moments)

try no condition and it works

E: aaa to late

Fail.

Triggering Unit is not a variable, it is a constant native, A.K.A. a function. It is not set, it always return null with this event. There are no lucky undefined moments, because it is an event response, and this event has no unit triggering it, so triggering unit will always be null.
 
Level 7
Joined
Mar 8, 2009
Messages
360
How about this:

  • Untitled Trigger 011
    • Events
      • Time - Every 25.00 seconds of game time
    • Conditions
    • Actions
      • Animation - Play Barracks 0114 <gen>'s stand work animation
      • Wait 10.00 seconds
      • Unit - Create 1 Footman for Player 1 (Red) at (Position of Barracks 0114 <gen>) facing Default building facing degrees
      • Animation - Play Barracks 0114 <gen>'s stand animation
Don't leave the location leak in there.


This way the time between spawns is 25 seconds and not 35 seconds.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
This way the time between spawns is 25 seconds and not 35 seconds.

sigh

-Wait 25 seconds
-wait 10 seconds
-Spawn creeps
-Wait 15 (25 - 10) seconds
-Wait 10 seconds
-Spawn creeps

So 25s between each creepspawn.

6544788.gif
 
Status
Not open for further replies.
Top