HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Making Session #3 - Lightning Grapple

05-12-2006, 09:26 PM#1
vile
Electricutes nearby enemies over time, draining mana from the caster over time. If the man target unit steps out of range, the channeling will stop. The bolt will seek other nearby targets until the max targets are fully taken, however it will deal less damage for each target it extracts to, and drain extra mana from the caster.

Follows the JESP standard.

Update:
Fixed the GetHighestHPFromGroup to follow the JESP.

Update #2:
Fixed some minor variable leaks. (thanks to blu)
Attached Images
File type: jpgLightningGrapple.jpg (87.2 KB)
Attached Files
File type: w3xSpellMakingSession#3-vile(v1.4).w3x (61.9 KB)
05-12-2006, 09:31 PM#2
blu_da_noob
Checking for JESP standard, pending approval.

Edit: function GetHighestHPFromGroup needs to either be moved out of the trigger to your custom script section, or be prefixed with the name of the spell and '_' to comply with the JESP standard. Then it can be approved (looks fine otherwise).
05-12-2006, 10:18 PM#3
vile
Done
05-12-2006, 10:21 PM#4
blu_da_noob
Approved

A couple of minor leaks found on detailed inspection:
function LightningGrapple_GetHighestHPFromGroup - unit variable lastresort should be nulled before returning highesthpunit
function LightningGrapple_Damage - group variable temp not set to null
05-13-2006, 10:38 AM#5
vile
Thanks, well done on noticing those. Fixed.
06-07-2006, 07:59 PM#6
Fulla
I followed instructions>

- Created the variables
- Copied the ability
- Copied the trigger
- Copied the custom script
- Set rawcode = ability
Attached Images
File type: jpgBug.JPG (105.0 KB)
06-09-2006, 02:17 PM#7
vile
dont set the t=null