| 05-13-2006, 10:04 PM | #1 |
Vengeful Curse 1.4 This spell was made for the Spell Making Session 03. It is free to use in any playable map you wish, and you may modify it however you like. Please give credit if you use it. If you have any questions or comments, feel free to post here or send me an email. Enjoy! - Vuen ([email protected]) Description: Curses a target enemy unit, causing it to speed up and attack one of your enemies. When the cursed unit hits someone, it transfers the curse. Adds bonus damage on each attack. Lasts a set number of hops. Features:
|
| 05-17-2006, 04:48 PM | #2 |
My apologies for the delay. Well made spell, follows the JESP standard; approved. My only gripe would be your frequent use of BJ functions, which should preferably be replaced by their native counterparts. |
| 05-25-2006, 02:36 PM | #3 |
Actually it uses almost no BJ functions. It mostly just uses the buff functions instead of ability functions for readability, and the converted player functions because I use player 0 to indicate no curse; this makes it faster than having a separate gamecache call to check if the unit is cursed. |
| 05-25-2006, 02:58 PM | #4 |
Things like: InitGameCacheBJ AddSpecialEffectTargetUnitBJ CreateNUnitsAtLoc (especially seeing as you only use it to create one unit) SetUnitVertexColorBJ IsUnitGroupEmptyBJ (enums through the whole group, can be replaced with FirstOfGroup == null) GroupRemoveUnitSimple GroupAddUnitSimple SetUnitPositionLocFacingLocBJ IssueTargetOrderBJ GetUnitAbilityLevelSwapped GetAttackedUnitBJ UnitDamageTargetBJ ForGroupBJ SetLightningColorBJ DestroyLightningBJ StoreIntegerBJ StartTimerBJ UnitHasBuff and UnitRemoveBuff are excusable, because you have semi-valid reasons. There is no excuse for those. JASS:call AddSpecialEffectTargetUnitBJ( VengefulCurse_DispelEffectAttach(level), un, VengefulCurse_DispelEffect(level)) call DestroyEffect( GetLastCreatedEffectBJ() ) JASS:call DestroyEffect(AddSpecialEffectTarget( VengefulCurse_DispelEffectAttach(level), un, VengefulCurse_DispelEffect(level))) I would hardly call that 'almost no BJ functions' (most of those are used multiple times). |
| 05-26-2006, 12:59 PM | #5 |
Hmm, I didn't realize I used that many. Well I'll update it in a few days. |
