ASMST Posted March 29, 2009 Share Posted March 29, 2009 This may or may not be the right place to post this but... I need help with a script.... A kinda hard one. While playing around with OOO, I found a sword called "light of dawn" which is a sword that deals additional damage to vampires. Kewl I though. Kept the sword around for when i ran into vampires (not a very common thing while doing quests and such, but what ever, the sword was a quest item and had no weight at the time so it was fine). After walking though a undead infested alyid ruin looking for a alyid statue (yeah, i actually do that quest :P) I though, well it would be sweet to have a Sword that did additional damage to ALL undead type things (lichs, zombies, skeletons vampires, ect). So, I set out to make such a sword. Tearing apart and twinking the "Light of Dawn" sword scripts to do so. It seemed to be going all well and good until it hit me, I have very little scripting abilities. Out side of a "onactive" type thing, im useless. So, thats where the help I am asking for steps in. :P Again, the script does the additional damage to ALL UNDEAD things, or at least I want it to do so. Paladins sword type thing... This is the script effect weapon enchantment thing. This is what I got, prepare to laugh... scn IWholySwordSpellEffectScript ; Origenal script by dev_akm ; Revised Script by Oscuro ; Twinked and horribly mutilated by Iron Wolf ref Target ref self short KillingBlow short isVampireTarget short isUndeadTarget short isLichTarget short isCreatureTarget ref HolySword1 ref HolySword2 ref HolySword3 ref HolySword4 begin ScriptEffectStart set KillingBlow to 0 set target to GetSelf set self to GetSelf set isVampireTarget to target.GetInFaction VampireFaction set isUndeadTarget to target.GetInFaction UndeadFaction set isLichTarget to target.GetInFaction LichFaction set isCreatureTarget to target.GetIsCreature if ( isCreatureTarget == 0 ) ; target cannot be a creature if isVampireTarget elseif isUndeadTarget elseif isLichTarget set HolySword1 to IWHolysword01 set HolySword2 to IWHolysword02 set HolySword3 to IWHolysword03 set HolySword4 to IWHolysword04 ; The Sword Does more damage Agenst Undead things If Player.GetEquipped IWHolysword01 HolySword1.pms effectResistNormalWeapons target.ModAV Health -5 elseif Player.GetEquipped IWHolysword02 HolySword2.pms effectResistNormalWeapons target.ModAV Health -10 elseif Player.GetEquipped IWHolysword03 HolySword3.pms effectResistNormalWeapons target.ModAV Health -15 elseif Player.GetEquipped IWHolysword04 HolySword4.pms effectResistNormalWeapons target.ModAV Health -20 endif endif endif EndIf EndIf end begin ScriptEffectUpdate if isCreatureTarget ; target cannot be a vampire return else if ( isVampireTarget == 0 ) return else if ( KillingBlow == 0 ) if Target.GetDead PlaySound ITMSoulTrap if Player.IsSpellTarget VampDisease if Player.GetEquipped IWHolysword01 Player.RemoveSpell VampDisease Message "For slaying vampire, Blade of the Holy Flame cures you of Porphyric Hemophilia." elseif Player.GetEquipped IWHolysword02 Player.RemoveSpell VampDisease Message "For slaying vampire, Blade of the Holy Flame cures you of Porphyric Hemophilia." elseif Player.GetEquipped IWHolysword03 Player.RemoveSpell VampDisease Message "For slaying vampire, Blade of the Holy Flame cures you of Porphyric Hemophilia." elseif Player.GetEquipped IWHolysword04 Player.RemoveSpell VampDisease Message "For slaying vampire, Blade of the Holy Flame cures you of Porphyric Hemophilia." endif endif endif endif endif endif end Link to comment Share on other sites More sharing options...
ASMST Posted April 1, 2009 Author Share Posted April 1, 2009 No help on the matter at all? Link to comment Share on other sites More sharing options...
jonesjoshuar Posted April 1, 2009 Share Posted April 1, 2009 No help on the matter at all?The only thing i can think up off the top is getting perhaps the actor faction. the undead all have their own faction. If the faction is undead do whatever you want it to do. edit: its getfaction rank which would something like rank>= 0 run your block of code. here is the wiki on ithttp://cs.elderscrolls.com/constwiki/index.../GetFactionRank Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.