unit spawn trigger problem -1 reply

Please wait...

TrueLordOfTheDance

Doing jigs, to save the world!

50 XP

30th July 2006

0 Uploads

138 Posts

0 Threads

#1 13 years ago

[COLOR=Red]Ok, I am trying to make a map. I made a trigger which I am trying to make work when you step into the circle of power and stop when you leave it. It creates one unit every few seconds then checks for the condition if true continues if false stops. Here is the trigger, how do I get it to work correctly? Events unit- A unit enter (triggering region) Conditions (Triggering unit) Equal to (Targeted unit) (Triggering unit) Equal to (Leaving unit) Actions Unit- Create 1 Sardorian golem for (triggering player at (center of center of map ) facing default building degrees. Trigger- Run (This trigger) (checking conditions) [/COLOR]




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#2 13 years ago

I fear you'll have to make 3 triggers...

Trigger 1: Events: a unit enters region 001 Conditions: entering unit equal to * Actions: trigger - turn on 'Trigger 2'

Trigger 2: (not initialy on) Events: every X seconds of game (choose X) Actions: [COLOR=Red] Unit- Create 1 Sardorian golem for (triggering player at (center of center of map ) facing default building degrees. Trigger- Run (This trigger) (checking conditions) [COLOR=Black]Trigger 3: unit leaves region 001 Condition: same as trigger 1 Actions: trigger - turn off 'Trigger 2' [/COLOR][/COLOR]

* Well... is it a specific hero? (like you only have 1 hero and it should only work when he enters the region), or should it work when ANY of your units enters the region? anyway, use 'boolean - unit is a hero equal to true' or ''owner of entering unit = player 1"




TrueLordOfTheDance

Doing jigs, to save the world!

50 XP

30th July 2006

0 Uploads

138 Posts

0 Threads

#3 13 years ago

[COLOR=Red]It is for everyone's peasant unit. I don't know how conditions work so I don't use them. Please explain. Lord of Dance. [/COLOR]




TrueLordOfTheDance

Doing jigs, to save the world!

50 XP

30th July 2006

0 Uploads

138 Posts

0 Threads

#4 13 years ago

[COLOR=Red]Odd, I put the trigger exactly like you said and when I tried to use it the game closed itself. Lord of Dance. [/COLOR]




beier

TFT

50 XP

15th October 2004

0 Uploads

41 Posts

0 Threads

#5 13 years ago

Trigger 2 shouldnt have Trigger - Run (this trigger) (Checking conditions) in the button. Causes the trigger to run to often.. The game will freeze The event itself will do the job.




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#6 13 years ago

that only won't help, as the unt will have to re-enter te region to spawn another unit. Therefore you should be using my triggers




beier

TFT

50 XP

15th October 2004

0 Uploads

41 Posts

0 Threads

#7 13 years ago

I was refering to your triggers.. Trigger 2 you have

Trigger 2: (not initialy on) Events: every X seconds of game (choose X) Actions: [COLOR=Red] Unit- Create 1 Sardorian golem for (triggering player at (center of center of map ) facing default building degrees. Trigger- Run (This trigger) (checking conditions)[/COLOR]

Adding that action: [COLOR=Black]Trigger - Run (this trigger) (Checking conditions)[/COLOR] will cause the game to freeze.. however the event every X seconds of game (choose X) itself will cause the trigger to repeat.




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#8 13 years ago

oh sorry... I didn't even notice I copied that too... I wanted to only copy the unit - create blabla