Grabstein Posted February 18, 2012 Share Posted February 18, 2012 Hey, all. Is there a way to combined multiple scripts that are not adding or subtracting from inventory or spell listings? My two scripts, right now, areScN gDepthsEdgeLevelScript Ref BladeReffloat damageOldValuefloat damageRelValuefloat damageNewValuefloat healthOldValuefloat healthRelValuefloat healthNewValuefloat reachOldValuefloat reachRelValuefloat reachNewValuefloat speedOldValuefloat speedRelValuefloat speedNewValuefloat damageNewValueTEST float healthNewValueTEST float reachNewValueTESTfloat speedNewValueTESTfloat chargeNewValueTESTfloat rechargeFactorOldValuefloat rechargeFactorRelValuefloat rechargeFactorNewValueshort usesOldValueshort usesRelValueshort usesNewValueshort chargePerUseShort PlayerLevelShort UpdateLevel Ref PlayerRefRef EnchRef Begin OnAdd {BladeRef} If PlayerLevel < 2 Set UpdateLevel to 1 Set EnchRef to gDepthsEdge01 Set DamageNewValue to 3 Set HealthNewValue to DamageNewValue * 100 Set RechargeFactorNewValue to 1.1 Set UsesNewValue to 5 Set ChargePerUse to 15 ElseIf PlayerLevel < 3 Set UpdateLevel to 2 Set EnchRef to gDepthsEdge02 Set DamageNewValue to 6 Set HealthNewValue to DamageNewValue * 200 Set RechargeFactorNewValue to 1.2 Set UsesNewValue to 10 Set ChargePerUse to 30 ElseIf PlayerLevel < 4 Set UpdateLevel to 3 Set EnchRef to gDepthsEdge03 Set DamageNewValue to 9 Set HealthNewValue to DamageNewValue * 300 Set RechargeFactorNewValue to 1.3 Set UsesNewValue to 15 Set ChargePerUse to 45 [...] EndifEnd Begin OnAdd {PlayerRef} Set BladeRef to gDepthsEdge PlayerRef.SetAttackDamage DamageNewValue BladeRef PlayerRef.SetObjectHealth HealthNewValue BladeRef PlayerRef.SetWeaponReach ReachNewValue BladeRef PlayerRef.SetWeaponSpeed SpeedNewValue BladeRef PlayerRef.SetEnchantment EnchRef BladeRefEnd andScN gDepthsEdgeSummoningScript Ref Self Begin OnAdd Self.AddItem gDepthsEdge 1 Self.EquipItem gDepthsEdgeEnd Begin OnUnequip Set Self to GetSelf Disable RemoveMeEnd I've successfully put magical effect scripts together, using a quest script. However, I'm not quite sure how to do that for object scripts. I've not been able to find anything, really, on it. Don't know if I'm just looking for the wrong terminology. When I *did* try to just add lines from one to the other, I got some weird effects like always being "in combat" without being able to move and having a copy of the sword being added every second... Link to comment Share on other sites More sharing options...
Grabstein Posted February 19, 2012 Author Share Posted February 19, 2012 Nevermind. It seems that things *had* gotten attached incorrectly and the way that I have the enchantment. It comes up as a "Scripted Effect", in game, and does not display *actual* statistics. Think I'm gonna abandon this railway line. Link to comment Share on other sites More sharing options...
Recommended Posts