I wanna minor tweak the miraak robe script as a start

Post » Tue Feb 10, 2015 7:10 pm

Scriptname dlc2MKMiraakRobeAbilityEffectSCRIPT extends ActiveMagicEffect

EXPLOSION PROPERTY tentacleExplosion AUTO
FLOAT PROPERTY waitTimer AUTO

bool CANEXPLODE=TRUE

EVENT ONHIT(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)

if(CANEXPLODE)
; debug.trace("this one's gonna be a hit")
game.getPlayer().placeAtMe(tentacleExplosion)
CANEXPLODE = FALSE

utility.wait(waitTimer)

CANEXPLODE = TRUE

endif

ENDEVENT


This is the original Miraak robe script (where the robe spawn a tentacle explosion center on the player),I wish to tweak the script to make it point at someone else other than the player,I'm pretty certain it's cake for some of the experienced scripter,but since i'm pretty new to papyrus scripting and apparently not the sharpest tool in the shed,I need some light shed on this little idea of mine,so enlighten me! I'm all ears:)

P.S:Sorry for the lack of highlighting,I don't know how to get around that BBCoding stuff...

User avatar
Gen Daley
 
Posts: 3315
Joined: Sat Jul 08, 2006 3:36 pm

Return to V - Skyrim