betto212 Posted January 4, 2009 Posted January 4, 2009 i did this script for try to balance the weapon spread in another way. so i set the weapon min spread to 0 and attach this script to the weapon but the value not update if the the skill is upgraded... then for adjust the value its required to unload and load again the weapon ... if someone know a way to fix the need of unload and load the weapon to force update the skill ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ScriptName spreadminigun ref myrefref penalty_35ref penalty_strengthref penalty_total Begin OnEquip set myRef to GetContainer set penalty_35 to ((myref.getav bigguns)*(0.35))set penalty_strength to ( myref.getav bigguns*(10- myref.getav strength )*(0.015)) set penalty_total to (penalty_35 + penalty_strength ) myref.DamageAV bigguns penalty_total End Begin OnUnEquip myref.restoreAV bigguns penalty_totalEnd
wyverex Posted January 4, 2009 Posted January 4, 2009 most likely will need to run a script in game mode http://cs.elderscrolls.com/constwiki/index.php/GameMode If I remember theres a way to limit how often the script will triggerso its not running every frame ---Maybe make a quest script that triggers every so oftenso when you equip it starts the questand unequip it stops it http://geck.bethsoft.com/index.php/Quest_scripts
betto212 Posted January 4, 2009 Author Posted January 4, 2009 if running ongamemode will affect npcs ?
wyverex Posted January 4, 2009 Posted January 4, 2009 As long as you save the ref from the onequip it should
Recommended Posts
Archived
This topic is now archived and is closed to further replies.