HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

need trig help.. again!

02-15-2003, 01:25 AM#1
Candy_Warlock
OK... Myster Mystery helped me greatly but yet my trigs were still ****ed up! I want to know how to make this kinda trigger:
-unit type A enters region= -x gold every x seconds
and creates 1 unit type B every x seconds

that worked but the problem is:
When the meanted-to-be trigerring unit left the region it still kept givin me units!

PLEASE HELP ME!

:ggani: emote_sweat emote_confused THANKS... :nono: 8)
02-15-2003, 03:40 AM#2
Guest
just do a every 0.01 seconds check system

Every 0.01 secs

if unit not in location turn off trigger A else do nothing
02-15-2003, 04:11 AM#3
DaKaN
--Moved--

and please once again, no questions in the repositiory, that is for working code you wish to share with others
02-15-2003, 08:12 AM#4
Myster Mystery
Hmm, I'm pretty sure I told you put in certain conditions too... does A have to be a unit TYPE or just a certain unit? If it is just a certain unit, create a boolean condition making sure your unit is inside the region. I'll try to check later to see what to do with unit types. Then again, you could simply save the entering unit as a variable and make it that when that variable exits the region then turn off the trigger using another trigger.
02-15-2003, 12:53 PM#5
Candy_Warlock
K THANKS! :D
Can u let this thread live for a couple of days in case of any errrors?

:ggani: :ggani: :ggani:
02-15-2003, 01:14 PM#6
Candy_Warlock
I need to know how to reuse the trigs.
So when the unit leaves it stops and when he comes back it restarts.
02-15-2003, 07:53 PM#7
Candy_Warlock
okok it still dunt work

the every 0.01 sec thing never works nor any time thing wats it used for. To make my triger repeat itself i have to make
run-trigger in actions
but then turn-off trigs dunt work
im so confused... HELP ME!

:mtk: :mtk: :mtk: :mtk: :mtk: :mtk: :mtk:
02-15-2003, 07:58 PM#8
Electromancer
How about
Event - Every x seconds
Condition - Unit owned by player equal to in region (k thats a bit sloppy but you get the basic idea)
Action - Whatever actions you want

You will have to make one for each player, but thats were copy and paste comes into play.
02-16-2003, 01:25 AM#9
Candy_Warlock
never thought of comparison for the regions... :D

but the evry x seconds does it reallly? worrk!? cuz for me it neva worked does it have to be alone to work?

wateva thanks ill try it and in case it doesnt work:
the trigger in castle madness when you choose your unit-type! That's wat i wnt!

:foot: