HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Help Needed (Again)

08-12-2003, 01:24 AM#1
Kil'Jaeden[eS]
once again, i just cant figure out how to set this up =)

i need something like this

Event: Player Reaches (# of Footman Unit-Type)

Action: If Player Reaches (# of Footman Unit-Type), Then Do Stop Unit Spawning (Not Units Being Created, I Mean SPAWNING, With No Visible Creation), else Do Nothing


and also, to allow "spawning" again

Event: Player Reaches Less Than (# of Footman Unit-Type)

Action: If Player Reaches Less Than (# of Footman Unit-Type), Then Do Allow Spawning, else Do Nothing


actually, i dont even know what the trigger outta look like....

but im doing a footman map, and i want the max number of created (footmen type) to be 50. which means for night elves, max of 50 archers, for orcs, max of 50 grunts. but being that the units arent actually being created, their just being spawned, im having trouble setting this up.... assistance please ^_^ want my map out by tonight.


-humor- what makes this so sad is that i figured out the correct way to setup the trigger 3 nights ago and deleted the trigger by mistake... >.< me terrible memory
08-12-2003, 06:22 AM#2
Catalyst
Reactivate Spawning
Event: A unit Dies
Condition: Unit type Footman
Action:
Set Variable TriggeringPlayer = (Owner of Triggering unit)
IF (#Footman owned by (TriggeringPlayer) less than X) AND (spawnUnits[SpawnUnits[Index(TriggeringPlayer)] = false)
THEN set variable (SpawnUnits[Index(TriggeringPlayer)] = true)


Deactivate spawning:
Add the following event into your spawn code (assuiming it is an array loop)

Action:
IF (# of Footman owned by (currentSpawnPlayer) greater than X) THEN setVariable (SpawnUnits[Index(TriggeringPlayer)] = false);



Your spawner would look something like:

(For i_PlayerArrayLength loop:
(if SpawnUnits[i_PlayerCounter] = true) THEN
Create X Footman at SpawnPoint[i_PlayerCounter]
i_PlayerCounter = I_PlayerCounter + 1

end loop

i_PlayerCounter = 0
08-12-2003, 11:41 PM#3
Kil'Jaeden[eS]
thanks once again yall ^_^ im goin for the best footie wars outthere, support my map pls =) Phrozen Fôôtman War§ 7.0 is set for release, TONIGHT!
08-13-2003, 12:19 AM#4
Stold
that version is already out thoe
08-13-2003, 12:23 AM#5
Kil'Jaeden[eS]
hmm... explain that with more details please, im having trouble finding a few parts of it
08-13-2003, 12:45 AM#6
cbc22
good luck! where can i get a copy? ^_^
08-13-2003, 11:48 PM#7
Kil'Jaeden[eS]
stold, no its not, and if it is, whoever made is it a ****ing fag.
08-14-2003, 12:04 AM#8
Plasma[Blade]
Sounds pretty cool, but I think we'd need a bit more of an explanation of this map to comment on it. Is it like the other ones, just with a max of 50 units and a few other things, is it a whole new Footman Wars, or what?

P.S: Wow, you're the first person I've seen who's spelled "Kil'Jaeden" right in months... have a cookie!
08-16-2003, 06:36 PM#9
Kil'Jaeden[eS]
nobody can give more detail no setting up this trigger? damn, guess i gotta figure out what i did the first time
08-16-2003, 08:45 PM#10
Alex_The_One
couldnt you made that trigger a little more simple??

deactivate
events:player food limit becomes greater or equal to 51

action:turn off trigger(the spawning trigger)

reactivate

events:player food limit becomes lesser or equal to 50

action:turn on trigger(the spawning trigger)


of course footies had to have food used:1
08-16-2003, 08:47 PM#11
Alex_The_One
though your trigger is much better if your gonna have other units besides footies