Jump to content

Scripting classic penetration?


ShadySandsShuffle

Recommended Posts

I need to throw together a script that divides the target's current damage resistance value by 5 so that only 20% of their total damage resistance is factored into the damage calculation. Furthermore, how would I then configure the associated base effect to implement it?

 

I don't really know anything about scripting and would strongly appreciate a push in the right direction

Link to comment
Share on other sites

Well here is a script that compiles ... Of course that doesn't really say it's going to work.

 

I guess try this as an "object script" on a weapon first. If no dice then make a base effect , Script archetype , with this as an "effect type script" as the associated item.

Flag the base effect with : touch, target, no duration, no magnitude, display name only.

 

Then make an Object Effect with that Base Effect , and select it as the object effect (enchantment) on a weapon or explosion.

 

 

ADD EDIT : Okies so this script works now ... And it has to be an "Effect" type script , so scratch the idea of putting an object script directly on the weapon.

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

SCN MyDebuffScript
Ref Gimp
Float DmgRst
Float Debuff
Begin ScriptEffectStart
Set Gimp to Player.GetCombatTarget
Set DmgRst to Gimp.GetAV DamageResist
Set Debuff to DmgRst * .8
Gimp.DamageActorValue DamageResist Debuff
End
Edited by Mktavish
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...