Monika's_BFFEx0256
Old Skool Apostle
- Joined
- Mar 9, 2009
- Messages
- 1,359
- Reaction score
- 70
I promise you it does not leech every hit. This leads to many problems.
{ game_dodamage //PARAM1=hit:0|1 PARAM2=ent_hit PARAM3=(start) PARAM4=(end) PARAM5=DmgType PARAM6=DmgAmt
if DEMON_RAGE_ON
if PARAM1
if $get(PARAM2,relationship,ent_owner) equals enemy
if ( $get(PARAM2,race) equals undead ) local IS_IMMUNE 1
if ( !IS_IMMUNE ) local IS_IMMUNE $get(PARAM2,scriptvar,'IMMUNE_VAMPIRE')
if ( IS_IMMUNE ) dplayermessage ent_owner Bludgeon Hammer: $get(PARAM2,name) is immune to vampyric effects.
if !IS_IMMUNE
local HEAL_AMT $get(PARAM2,scriptvar,'LAST_STRUCK_FOR')
multiply HEAL_AMT VAMPIRE_RATIO
local OWNER_HP_AFTER_HEAL $get(ent_owner,hp)
add OWNER_HP_AFTER_HEAL HEAL_AMT
if OWNER_HP_AFTER_HEAL <= $get(ent_owner,maxhp)
effect glow ent_owner (255,0,0) 60 1 1
playsound 0 10 player/heartbeat_noloop.wav
givehp ent_owner HEAL_AMT
}
Lucifer Majiskus said:Bludgeon hammers definitely don't leech every hit anymore. Not sure if this was intentional, but
Thothie said:Code:local OWNER_HP_AFTER_HEAL $get(ent_owner,hp) add OWNER_HP_AFTER_HEAL HEAL_AMT if OWNER_HP_AFTER_HEAL <= $get(ent_owner,maxhp)
Thothie said:Code:local HEAL_AMT $get(PARAM2,scriptvar,'LAST_STRUCK_FOR') multiply HEAL_AMT VAMPIRE_RATIO
const VAMPIRE_RATIO 0.6
{ game_struck //<damage_taken>
setvard LAST_STRUCK_FOR PARAM1
}
...and yeah, all your strings are potentially overflowing, so you'd have to remove quite a bit of stuff before you could add more without risking item corruption, which the chest shouldn't allow you to do.BankDump StringSize/Max said:[ b1 232 / 158 ]
[ b2 236 / 158 ]
[ b3 230 / 158 ]
[ b4 230 / 158 ]
[ b5 241 / 158 ]
[ b6 220 / 158 ]
[ b7 239 / 158 ]
[ b8 226 / 158 ]
[ b9 236 / 158 ]
Lucifer Majiskus said:Hmm... I don't think we did.