HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Turn On Problems

01-27-2004, 04:17 PM#1
shadow)ps(
Ok i have a difficulty settings. and players vote for their choice. majority rules. now heres the problem. after 15 seconds the triggers fire to see which difficulty had most votes and the one with most votes turns on triggers for that winning difficulty. one trigger is to keep spawning units if there are less than 4 of the respective units. the event is to check every 2 seconds, a periodic event. but when i play in game, it does not check and spawn every 2 seconds, in fact, it seems it takes a minute or two to fire the trigger. any suggestions or ideas as to why this happens?
01-27-2004, 10:49 PM#2
Draco
Can you post the actual triggers?
01-28-2004, 04:12 AM#3
shadow)ps(
Events:
Time Elapsed: 15 seconds

Conditions:
Normal greater than easy
Normal greater than gosu
Normal greater than Extreme

Actions:

Trigger - Turn on Spawn 1 Level 2 Normal
Trigger - Turn on Spawn 1 Level 3 Normal
Trigger - Turn on Spawn 1 Level 4 Normal
Trigger - Turn on Spawn When no Ghouls
Trigger - Turn on Spawn when no abominations



Heres the Spawn when no ghouls and spawn when no abominations triggers

Initially Off of course

Events:
Time - Every 2 seconds of game time

Conditions:
Units of type Ghoul owned by player 12 less than 4

Actions:

Create 4 Ghouls at spawn 1
wait 1 second
Create 4 ghouls at spawn 2

ETc etc etc.

please help asap!

:foot:
01-28-2004, 01:58 PM#4
xxxSpikexxx
why do you make

Create 4 Ghouls at spawn 1
wait 1 second
Create 4 ghouls at spawn 2


in a periodic event? the PC will do it every to seconds anyway ... and it takes a lot of memory to make it check if there are less than 4 ghouls every 2 seconds ...

doesn't it work if you do :
event:
every 2 seconds
action:
create 4 ghouls
???

mayby i don't get what you mean ... what does the dificulty change?
the unit type? the periods between the waves? the number of unist created? or what?
01-28-2004, 02:18 PM#5
shadow)ps(
the problem is, its not spawning the ghouls when there are less than 4 ghouls on the playing field. its a survival map, and i want there to be ghouls to replace the ghouls that get killed. this problem happened only after i implemented trigger - turn on.

also, exactly how much memory is taken up to check every 2 seconds? would it be better if i just made

if unit dies

check if there are less than 4 ghouls

create the 4 ghouls?
01-28-2004, 02:43 PM#6
matzzzz
i think it would be easyir if u made it:

E: unit dies
C: unit equal to ghould
A:run checkghouldtrigger

checkghoultrigger:
E:
c: number of ghouls in playable map area less than 4 (cant really remember exact way to do it, try search a little around)
A:create 4 ghouls at spawn 1
create 4 ghouls at spawn 2


and. btw
the vote thing...u sure it works right?
01-28-2004, 03:13 PM#7
shadow)ps(
well, all the other triggers in the difficulty level worked all cept the 2 im talking about now

are you telling me that triggers dont HAVE to have events? only conditions and actions? so when does the comp check conditions?
01-28-2004, 03:28 PM#8
Bulletcatcher
The 'Trigger - Run Trigger' event allows you to specify if you want to check conditions of the trigger you're running. In this case, you would choose to check conditions.
01-28-2004, 04:11 PM#9
shadow)ps(
it seems that after the respawn runs one time, it stops firing, even after conditions are met. why does this happen?
01-28-2004, 07:11 PM#10
Ligature
When a unit is killed, it still exists... you want to check the number of ghouls owned by this player that are alive. Pretty simple really, just a unit group "All units in playable map area matching conditions: unit-type of matching unit = ghoul and matching unit is alive"