HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Healing Spell

10-18-2003, 11:58 PM#1
Zachary_Shadow
Salvation
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Salvation
Actions
Unit Group - Pick every unit in (Units within 200.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an ally of Player 1 (Red)) Equal to True
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 50.00)%
Else - Actions
Do nothing

Ok this is a spell I'm trying to do, but I'm having ALOT of problems:

1) I don't want the spell to be AOE, but I can't find a action that picks a unit, targeted by an ability..
2) The spell should heal allied players units, but damage non allied (Little like death Coil)
3) The unit set life action is acting up wierd... If I use the spell near a unit that has 103 hp, it gives +3 hp..after that the unit is at 106, and it gives +7...It should give +10% instead (tried setting it to +10%, doesn't work, this is just the last trigger before I gave up)

Can someone point me in the right direction?
10-19-2003, 12:13 AM#2
Vexorian
1) You first need to save the unit after detecting the order:
need an unit array called SavedTarget[]

Events:
A unit is issued an order targetting an object

Conditions
(Unit type of (triggering unit) equal to (Healing Spell Caster))
(Issued order equal to Order(look at the dummy spell))

Actions
Set SavedTarget[Player number of owner of triggering unit] = (Target unit of issued order)


2)

The spell actions should be
If (owner of SavedTarget[player number of triggering unit] is an enemy of (owner of triggering unit)) then
Set Life of SavedTarget[player number of triggering unit] to (life of (SavedTarget[player number of triggering unit])) x 0.5

else Set Life of SavedTarget[player number of triggering unit] to (life of (SavedTarget[player number of triggering unit])) x 1.5
10-19-2003, 12:47 AM#3
Zachary_Shadow
EDIT: Nm this post, I figured it out :P lol

Thanks alot Vex :)
10-19-2003, 01:14 AM#4
Zachary_Shadow
Ok, found a little problem with it :)

If your away from the target (the spell is melee) and issue the order (so that the unit will run to it) The unit targeted will get healed anyways.

If we could get a condition, that registrered if the targeted unit was within 100 (120?) or so, before the trigger was shot off.

U know how that could be done ?
10-19-2003, 01:27 AM#5
Dragon
You don't want it to be AoE, yet you want it to heal everyone within 200 of the caster? (which is AoE)

Make up ur mind man...
10-19-2003, 01:46 AM#6
Zachary_Shadow
Quote:
Originally posted by ThePersonThing
You don't want it to be AoE, yet you want it to heal everyone within 200 of the caster? (which is AoE)

Make up ur mind man...


Wth....Where the fu did u get from that I want it to heal everyone within 200?!? That was what I had to do because I didn't know what to do to get a single target of the spell...read before you post pls.

I'm still trying to figure this one out...but it's a pain, been trying this condition, but it doesn't get fired at all:

If
(The distance between (Triggering unit) and (Target unit of issued order) matches 100.00) Equal to True

Then
Run the above triggers

Else
Issue orderUnit - Order (Triggering unit) to Stop


What do I need?
10-19-2003, 04:23 AM#7
Hunter0000
just base it off storm bolt or somthing like it....



Yay post 250!!:dance: :dance:
10-19-2003, 05:04 AM#8
Zachary_Shadow
Problem is, if you base it off anything else than Holylight, it won't be able to recognise the order, EVEN if you set the order string to Holybolt..

I'm gonna find some other way to do this :) Thanks all