HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Confused on Triggers

07-13-2002, 05:20 AM#1
Guest
Well... yea... I'm trying to create one of those Creators Create units that spawn to other units for a controller to controll and kill other players... I just have no Idea how to have a multiple units spawn where instead of just one unit who spawns into multiple units for the controllers - I have (for example) two wisps change into 5 shades for the controller...

I know this probably sounds simple for somebody... but if you are that somebody... help...

Thanks,
CraZDemonSlayer
07-13-2002, 05:39 AM#2
OrcishSpacesuit
Event
  • A unit enters the area where the units change, or whatever
Conditions
  • Owner of (Triggering Unit) has exactly 2 (Wisp) at (area where units change)
Actions
  • Pick every unit in unit group and do action: Pick every unit owned by player (owner of (triggering unit))in region(area where units change) matching condtion (units type comparison - unit type of (matching unit) equal to wisp) and do action:Remove (picked unit)
  • create 5 (shade) for owner of (triggering unit) at (area where units change) facing (whatever) degrees

I don't know if that's what you are looking for, but hope it helps.
07-13-2002, 06:05 PM#3
Guest
I dont know exactly what your saying... sorry. But I have gotten 1 unit to spawn into something here's the triggers:

Team1 RegUnitSpawn

Events
Unit - A unit comes within 10.00 of Unit Spawn ####<gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Unit - Kill(Triggering unit))
Unit - Create Shade for Player 2 (Blue) at (Center of Blue Spawn Point <gen>) facing (Center of (Playable map area))
Game - Display to (All allies of Player 3 (Teal)) the text: [TXT]

I know I have to add/change a condition... I just have no idea which or what exactly needs to be said... (type of contion exc...)

PS... did I mention that this is my first trigger map...

Thank You again,
CraZDemonSlayer
07-14-2002, 05:09 PM#4
OrcishSpacesuit
Alright... here's the condition, really broken down. Grey is the text you select in the drop down menus; black is the text that you read; underline is text you select:

Integer Comparison -
-Unit-Count units in unit group
--Number of units in (
---Unit-Count units in unit group
----Number of units in(
-----Units in region matching condition
------Units in (Your Region/Area) matching
-------and
--------Unit-Unit type comparison
---------Unit type of (matching unit) equal to Wisp
--------and
--------Player comparison
---------Owner of (matching unit) equal to The player who has the wisps
-Equal to
-2 (or however many of the unit is needed)

Then use my actions stated as before; if a different player gets the new units (not sure--you aren't too clear), change the second one to the player that gets them instead of "owner of(triggering unit)"

If you can't figure out what I have above, I suggest playing around more with easier stuff in the editor first.