HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hmm Poison doesnt work? it heals lol?? please help

09-07-2006, 03:49 AM#1
Fr0zenLord
Trigger:
Posion
Collapse Events
Time - Every 1.00 seconds of game time
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Set Point_Point_1 = (Position of AAUnit[(Integer A)])
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Terrain type at Point_Point_1) Equal to Felwood - Poison
((AAUnit[(Integer A)] is Mechanical) Equal to True) or ((AAUnit[(Integer A)] is An Ancient) Equal to True)
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Collapse Then - Actions
Unit - Set life of AAUnit[(Integer A)] to ((Life of AAUnit[(Integer A)]) - ((Max life of AAUnit[(Integer A)]) x 0.15))%
Else - Actions
Else - Actions
Custom script: call RemoveLocation(udg_L_2_Copy_3)

Dont know why, my escapers (Escape maker like map) have 1k hp... (originally 10, but didnt work so i tried 1k)
It heals them? they have no hp regen... but they gain hp??? on poison
Its suppost to change its hp to 15% less each second... But all that happens is it gets healed I need help with this plz My map is nearly ready to be released -.-
09-07-2006, 04:33 AM#2
SentryIII
You're setting the unit's health to a percentage of the max health. Anything over 100 would heal it completely.
09-07-2006, 01:44 PM#3
Naakaloh
Sentry is correct; you will want to use something like this instead:

Trigger:
Actions
Unit - Set life of (YourUnit) to ((Life of (YourUnit)) - ((Max life of (YourUnit)) x 0.15))