Scorc Posted July 17, 2009 Share Posted July 17, 2009 Uhh yeah so i was wondering if someone could creat a script for like 2 rings or something that whan you equip them the mod your fame or infamy (for use with quest/shrines that need fame/infamy -like the shrine in the vile lair) My idea is it would get you oppisit rating (good checks evil and evil check good) then adds that amount plus 1 to itself. i.e. Fame =10 infamy =12 wear the "good' ring fame=23 infamy =12 "bad" ring fame =10 infamy =23or if you could simply get me started w/ the right comands needed that would work. Please and thank you. :thumbsup: Link to comment Share on other sites More sharing options...
Vagrant0 Posted July 17, 2009 Share Posted July 17, 2009 Uhh yeah so i was wondering if someone could creat a script for like 2 rings or something that whan you equip them the mod your fame or infamy (for use with quest/shrines that need fame/infamy -like the shrine in the vile lair) My idea is it would get you oppisit rating (good checks evil and evil check good) then adds that amount plus 1 to itself. i.e. Fame =10 infamy =12 wear the "good' ring fame=23 infamy =12 "bad" ring fame =10 infamy =23or if you could simply get me started w/ the right comands needed that would work. Please and thank you. :thumbsup:Scripted enchantments on worn items, like clothing, have to be done using an ability which performs the effect which is added/removed by the ring within an onequip/onunequip block Script for the ring Scn mmdringaddeffectmakedostuff01Script Begin onequip if getcontainer == player player.addspell <ability ID> endif end Begin onunequip if getcontainer == player player.removespell <ability ID> endif end [code] Script for the fame ability [code] scn mmdabilityforfamethingy01Script begin scripteffectstart if getself == player ModPCFame 50 endif end begin scripteffectfinish if getself == player modPCFame -50 endif end or something to that effecthttp://cs.elderscrolls.com/constwiki/index.php/ModPCFamehttp://cs.elderscrolls.com/constwiki/index.php/ModPCInfamy Link to comment Share on other sites More sharing options...
Scorc Posted July 17, 2009 Author Share Posted July 17, 2009 ok wow yeah so I understood less of that that i would have liked. :wallbash::confused:And if you could explain some of the syntax or give a link for it that would be cool how do you use a temp variable? I have the ability to set it but bot sure how to use it inplace of a number. Link to comment Share on other sites More sharing options...
Pronam Posted July 17, 2009 Share Posted July 17, 2009 The begin Equip blocks (first 2 ) should be placed in the script of your ring.The other two blocks have to be placed inside a 'Magic-Effect' script of an ability. You can set so on top of each script.(The standard is 'Object' change it to 'Magic Effect')You'll have to create a new spell (ability) which holds a 'Script-Effect' as one of the effects, as there you can assign your Magic-effect-script. The functions used:AddSpell/RemoveSpellGetContainerGetSelfModPCFameInfo about begin blocks. Link to comment Share on other sites More sharing options...
Scorc Posted July 17, 2009 Author Share Posted July 17, 2009 right so i knew some stuff befor. You just when a longer way for it. My Script: ;11ringgood ScriptName 11ringgoodbegin OnEquip playerModPCFame 50end begin OnUnEquip playerModPCFame -50end I was hoping to use a search on the opposing rank and set that value as a temp value or something like that then add that inplace of the 50.Also i placed the script in the script box for ring so i didnt use up and enchantment slot(I stick w/ like 7-8 so I can see them all) Link to comment Share on other sites More sharing options...
Vagrant0 Posted July 17, 2009 Share Posted July 17, 2009 right so i knew some stuff befor. You just when a longer way for it. My Script: ;11ringgood ScriptName 11ringgoodbegin OnEquip playerModPCFame 50end begin OnUnEquip playerModPCFame -50end I was hoping to use a search on the opposing rank and set that value as a temp value or something like that then add that inplace of the 50.Also i placed the script in the script box for ring so i didnt use up and enchantment slot(I stick w/ like 7-8 so I can see them all)The problem with changing a stat directly on an equip is that it can sometimes get stuck, or re-applied. With an ability, the stat change will always be present as long as that ability is on the player, and cannot be doubled. Basically, it helps make sure that the mod doesn't bug up. Link to comment Share on other sites More sharing options...
Recommended Posts