HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Heal spell dont work

06-20-2006, 12:19 AM#1
sheep
Well it aint working..
Heal
Trigger:
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Heal
Collapse Actions
Set Int[(Player number of (Owner of (Casting unit)))] = (Intelligence of (Casting unit) (Include bonuses))
Game - Display to (All players) the text: (String((Int[(Player number of (Owner of (Casting unit)))] x 3)))
Unit - Set life of (Targeted unit) to ((Life of (Targeted unit)) + ((Real(Int[(Player number of (Owner of (Casting unit)))])) x 3.00))
Floating Text - Create floating text that reads (String((Int[(Player number of (Owner of (Triggering unit)))] x 3))) above (Targeted unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds

I think the problem is in this line: "Unit - Set life of (Targeted unit) to ((Life of (Targeted unit)) + ((Real(Int[(Player number of (Owner of (Casting unit)))])) x 3.00))
Floating Text - Create floating text that reads (String((Int[(Player number of (Owner of (Triggering unit)))] x 3))) above (Targeted unit)"

and I dont see eny floading text.. what am i doing wrong.?

Int is a intiger array (10)

<edit by Pipe: changed to trigger tags>
06-20-2006, 12:23 AM#2
harshateja
my eyes Use trigger tags. THen I'll look at it.
06-20-2006, 12:28 AM#3
Rising_Dusk
"Targeted unit" should be "Target unit of Ability being cast" everywhere.
06-20-2006, 08:12 AM#4
Captain Griffen
Also, use 'unit begins the efffect of', as then it cannot be abused.
06-20-2006, 01:17 PM#5
sheep
Thanks... changing "Targeted unit" too "Target unit of Ability being cast" solved the problem. and I also changed the event too "unit begins the efffect of"

here are my code now..
Trigger:
Heal lvl 1 too 9
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Heal
(Level of (Casting unit)) Less than 10
Collapse Actions
Set Int[(Player number of (Owner of (Casting unit)))] = (100 + ((Intelligence of (Casting unit) (Include bonuses)) x 2))
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + ((Real(Int[(Player number of (Owner of (Casting unit)))])) x 1.00))
Floating Text - Create floating text that reads (String(Int[(Player number of (Owner of (Casting unit)))])) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Wait 5.00 seconds
Floating Text - Destroy (Last created floating text)

<edit by pipe: Use trigger tags>
06-20-2006, 01:23 PM#6
Rising_Dusk
Your code looks perfect, hooray code!
Oh by the way, in the future you should learn about using Trigger Tags, you can check them out here.
06-20-2006, 01:27 PM#7
sheep
Thanks... changing "Targeted unit" too "Target unit of Ability being cast" solved the problem. and I also changed the event too "unit begins the efffect of"

here are my code now..
Trigger:
Heal lvl 1 too 9
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Heal
(Level of (Casting unit)) Less than 10
Collapse Actions
Set Int[(Player number of (Owner of (Casting unit)))] = (100 + ((Intelligence of (Casting unit) (Include bonuses)) x 2))
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + ((Real(Int[(Player number of (Owner of (Casting unit)))])) x 1.00))
Floating Text - Create floating text that reads (String(Int[(Player number of (Owner of (Casting unit)))])) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Wait 5.00 seconds
Floating Text - Destroy (Last created floating text)

<Edi... there seems to be a glitch in the matrix.>