HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

summoned unit problem.

11-13-2006, 01:05 AM#1
Argo
when i use the ability the unit (UNIT) doesn't get replaced.

Trigger:
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) equal to ABILITY
Collapse Actions
set varPoint = (Position of (summoned unit))
Unit - Remove (summoned unit) from the game
Unit - Create 1 UNIT for (Triggering player) at varPoint faceing default building faceing degrees
Set varUnit = (Last created unit)
set varUnitA = True
11-13-2006, 01:18 AM#2
TaintedReality
Well you're using the event "A unit begins casting an ability" but then using the summoned unit variable within the trigger. If you want to use summoned unit then you have to use the appropriate event - "Unit - A unit Spawns a summoned unit".
11-13-2006, 01:18 AM#3
shadow1500
You don't know how to use event responses:
The event is "A unit Begins casting an ability", the event responses for it are "Triggering unit", "casting unit" and "target unit/point of ability being cast". You are using other event responses which don't apply, like "Triggering Player" and "Summoned Unit".
11-13-2006, 01:21 AM#4
Argo
oh... lol thanks +Rep
11-13-2006, 01:27 PM#5
Matarael
Or better yet, use "a unit enters map", then "replace triggering unit with UNIT".
11-13-2006, 06:48 PM#6
BertTheJasser
That's dumb, as this would fire 1000x times more than needed. Why?
11-13-2006, 07:12 PM#7
Fireeye
I would add a little wait @ the first line with the exact casting time (i recommend a timer) when the effect of the spell is started.
Not the best way but it worked (at least for me and depending on what you excactly want to make).
Uhm, btw. what i don't understand, the Ability is a summon ability or?
If yes, why do you want to make a trigger?
11-14-2006, 12:51 AM#8
Matarael
Is this supposed to be a reply to my post?:

Quote:
That's dumb, as this would fire 1000x times more than needed. Why?

Because hey, you could add "conditions" to the triggers.
11-14-2006, 01:36 AM#9
Vexorian
it would add a little grain of sand to the map's performance issues as well?.

Really, please what's the reason not to use the most direct approach in this case?
11-14-2006, 02:44 AM#10
Matarael
Oh okay. Vex knows best :)
11-14-2006, 10:07 AM#11
BertTheJasser
Quote:
Originally Posted by Fireeye
I would add a little wait @ the first line with the exact casting time (i recommend a timer) when the effect of the spell is started.
Not the best way but it worked (at least for me and depending on what you excactly want to make).
Uhm, btw. what i don't understand, the Ability is a summon ability or?
If yes, why do you want to make a trigger?

That is the worst way you could do it. Why would you use a wait, when you can simply change the evnet and everything is fine, no waits, no workarounds, just on little change to approach the unit directly?
11-14-2006, 02:33 PM#12
Fireeye
ops, you're right, sometimes i'm too dumb.
But my Question @ Argo is still:
Why do you want to replace a fresh summoned unit?
That doesn't make any sense to me
11-14-2006, 11:35 PM#13
Argo
Quote:
Originally Posted by Fireeye
ops, you're right, sometimes i'm too dumb.
But my Question @ Argo is still:
Why do you want to replace a fresh summoned unit?
That doesn't make any sense to me

Ya i took that part out. now it just sets the variables.