HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Help !

10-24-2003, 06:09 PM#1
chemo
hi ive tried to make new kinda spell ...

the spell has to move the entering unit instantly to the start of its spawn.

i based the spell on a stasis trap, that center the region to the middle of the stasis trap, now a trigger is activated for 7 seconds -
the activated trigger has to move the entering unit to the its start spawn.

i have 8 players in my map, and i need 1 trigger to work for them all, and transport the creeps to each of their start spawn...

plz help me :S
10-24-2003, 10:28 PM#2
Zechnophobe
You want a spell a hero will cast, that will move all the creeps in an area of effect to a point specific to the caster's Player?
Well, I've been doing a lot of 'campaign' stuff based on only a single player, so I don't directly recall if you can get an Integer value for a player, but I can help with the rest:

Do you want the ward to stay in place and move the units there as they come, or do you want this to be a 'cast' -> 'effect' ->'done' type of deal?
For the first case, you are going to want to (If I recall correctly) use an
EVENT:'unit enters region'
CONDITION: 'Unit is owned by (Creeps)'
ACTION: UNIT Group Pick all units of a unit-type = (The ward you made), and do: move all units owned by (Creeps) to (Spawn area of Picked Units Player) within a range of (X = the radius from the ward you want the units to get nabbed from) from the unit: Picked Unit.

For the latter:
EVENT:'Unit enters region'
CONDITION: 'Unit is of type = (The ward you created)'
ACTION: Unit Group: Pick all units owned by player (Creeps) within range (X = the radius from the ward you want units to get nabbed from) from the unit: Entering unit: And do: Move unit (Picked unit) to (Spawn area of Entering Units Player).

Hope the inane scribblings above help ya.
10-25-2003, 05:02 AM#3
Otiluke
Integer value for a player can be set like so:

Variable=integer number (number of (conditionally activated [your choice of method]) player)
10-25-2003, 04:15 PM#4
chemo
my problem is not to make a player codex...

but get the unit that enters the region to the specific region of the player...
10-25-2003, 04:22 PM#5
Ligature
What about a loop with an if that goes:

For A = 1 to (number of players)
If Player index of owner of (the ward) = Integer A then move (the creep) to Region[Integer A]

Where Region[] has been set up as an array of the spawn regions.
10-25-2003, 05:48 PM#6
chemo
its still not the player codex i need.... i need the whole spell, not how to make a player codex
10-25-2003, 06:15 PM#7
Ligature
How many wards are going to be able to exist at once?
10-25-2003, 09:15 PM#8
chemo
k, nevermind... i found out myself, and none of ur examples helped at all...

but thx for all the responses !