Jump to content

Scripts


Scorc

Recommended Posts

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 =23

or 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

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 =23

or 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 effect

http://cs.elderscrolls.com/constwiki/index.php/ModPCFame

http://cs.elderscrolls.com/constwiki/index.php/ModPCInfamy

Link to comment
Share on other sites

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

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/RemoveSpell

GetContainer

GetSelf

ModPCFame

Info about begin blocks.

Link to comment
Share on other sites

right so i knew some stuff befor. You just when a longer way for it.

 

My Script:

 

;11ringgood

 

ScriptName 11ringgood

begin OnEquip player

ModPCFame 50

end

 

begin OnUnEquip player

ModPCFame -50

end

 

 

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

right so i knew some stuff befor. You just when a longer way for it.

 

My Script:

 

;11ringgood

 

ScriptName 11ringgood

begin OnEquip player

ModPCFame 50

end

 

begin OnUnEquip player

ModPCFame -50

end

 

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...