Bow Damage Script (via OBSE)

Post » Sun Jun 03, 2012 8:20 pm

Im trying to make a script via when you add this ability it will be running this script. But i cant seem to get it to work, any help would be appreciated

SEE SECOND POST

Thanks. (I know this is my second topic but this is for a different issue tbh.
User avatar
Lance Vannortwick
 
Posts: 3479
Joined: Thu Sep 27, 2007 5:30 pm

Post » Sun Jun 03, 2012 7:55 pm

Okay so, Ive kinda got my script to work but i still need a little help.

short BowEquipref Weaponfloat WeaponDamageBegin GameMode;  if player.GetWeaponskillType == 3 && BowEquip == 0  set Weapon to player.GetEquippedObject 16  set WeaponDamage to GetAttackDamage Weapon  set WeaponDamage to WeaponDamage + 2  SetAttackDamage WeaponDamage Weapon  Set BowEquip to 1endif  if player.GetWeaponSkillType <= 2 && BowEquip == 1  set WeaponDamage to GetAttackDamage Weapon  set WeaponDamage to WeaponDamage - 2  SetAttackDamage WeaponDamage Weapon  Set BowEquip to 0endifEnd

It works fine, unless i switch from Bow to Bow, in which case the originally equiped bow is still changed and the new one isnt, You have to unequip the bow, then equip the new bow for the change in attack power to take place.

Is there anyway for me to fix this so switching from Bow to Bow, updates the newly equiped bow?

Thanks
User avatar
Shirley BEltran
 
Posts: 3450
Joined: Wed Jul 26, 2006 4:14 pm


Return to IV - Oblivion