hextun Posted June 4 Posted June 4 Hey folks, got a little SLTScript for you. This one is a wrapper around modav. Run this targeting an actor (player or otherwise) and you will be presented with a list of actor values, as well as a "- Cancel -" option which will, of course, cancel the script, and a "- Custom -" option which will then pop up a text entry field where you can enter an actor value you want to work with. Otherwise pick one from the list (e.g. Health, HealthRegen, Magicka, Destruction, CarryWeight). Then a text entry field will pop up for you to enter the amount you wish to apply via modav. Once you've done so, hit enter and the actor value should then be applied. Drop this into the commands/ folder as normal (ModAV.sltscript) and then you can target it via, for example, a key press event which will target the player, or by selecting an actor in the console and using "slt run ModAV". ModAV.sltscript: ; ModAV.sltscript string[] $avlist listadd $avlist "- Cancel -" "- Custom -" "Health" "Magicka" "Stamina" "HealRate" "MagickaRate" "StaminaRate" "HealRateMult" "MagickaRateMult" "StaminaRateMult" "ReflectDamage" "SpeedMult" "CarryWeight" "MeleeDamage" "UnarmedDamage" "DamageResist" "PoisonResist" "FireResist" "ElectricResist" "FrostResist" "MagicResist" "DiseaseResist" "AbsorbChance" "OneHanded" "TwoHanded" "Marksman" "Block" "Smithing" "HeavyArmor" "LightArmor" "PickPocket" "Lockpicking" "Sneak" "Alchemy" "Speechcraft" "Alteration" "Conjuration" "Destruction" "Illusion" "Restoration" "Enchanting" set $avindex resultfrom uilib_showlist "Select an ActorValue to Modify" $avlist if $avindex == 0 uilib_shownotification "Cancelling ModAV" return elseif $avindex == 1 set $avtarget resultfrom uilib_showtextinput "Enter a Custom ActorValue" else set $avtarget $avlist[$avindex] endif if $avtarget &= "" uilib_shownotification "Cancelling ModAV" return endif set $modvalue resultfrom uilib_showtextinput "Enter the ModValue Amount" uilib_shownotification $"Calling Actor.ModActorValue for AV({$avtarget}) with value({$modvalue})" actor_doconsumer $system.self ModActorValue $avtarget $modvalue
Recommended Posts