DaemonGrin Posted July 9, 2013 Author Share Posted July 9, 2013 (edited) Figured out the Global except should it be a short, long, do I need to make it a constant? Tried the one you provided Jazz but something is wrong it won't save scn VRElevGoBoomScript short doOnce Begin onTriggerEnter Player if doOnce == 0 VRDoorBang01.disable VRDoorBang01.placeAtMe VRElevExplosion 1 VRDoorBoom01.enable VRElevFlames01.enable VRElevFireLight01.enable VRElevGoBoomTrigger.pushActorAway player 5 set iDamage to 20 + (player.GetLevel * 5) player.DamageActorValue Health iDamage set doOnce to 1 endif end I know I should use enable parent which I will this was the working script until I added the dmg mult statement. Thanks,Geoff EDIT: I had to make it a short variable in the script to the iDamage statement to actually save. Edited July 9, 2013 by DaemonGrin Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted July 9, 2013 Share Posted July 9, 2013 Please use the script tag when posting script, it's the <> tag at the top of the editor box. :) GlobDmgMult is a value you set. You can replace it with a hard value in the code: set iLvl to Player.GetLevel set iDmgMlt to iLvl * 10 Player.DamageAV Health iDmgMlt Or you can use a http://geck.bethsoft.com/index.php?title=Globals'>Global Variable to set it. The plus side of this method is that you can easily set it from somewhere else, like the console or another script. Link to comment Share on other sites More sharing options...
Recommended Posts