how do I split it and such?
it is being done for mmm and ooo, can I do it this way?
one mod to go for ooo, another that deals with mmm
and then use both at once?
short x set x to CNTRef.GetItemCount ChainmailHelmetWorn * 1 + x set x to CNTRef.GetItemCount ChainmailGauntletsWorn * 1 + x set x to CNTRef.GetItemCount ChainmailBootsWorn * 2 + x set x to CNTRef.GetItemCount ChainmailGreavesWorn * 4 + x set x to CNTRef.GetItemCount ChainmailCuirassWorn * 8 + x set x to CNTRef.GetItemCount ChainmailShieldWorn * 3 + x set x to CNTRef.GetItemCount IronHelmetWorn * 4 + x set x to CNTRef.GetItemCount IronGauntletsWorn * 4 + x set x to CNTRef.GetItemCount IronBootsWorn * 6 + x set x to CNTRef.GetItemCount IronGreavesWorn * 12 + x set x to CNTRef.GetItemCount IronCuirassWorn * 20 + x set x to CNTRef.GetItemCount IronShieldWorn * 8 + x set cNewIron to x
scn fucntionCountItemsref CNTRefshort cNewIronbegin Function {CNTRef} ;this is a parameter passed to the function, and gets stored into the ref variable above automatically;this is your code you copypasted hereset cNewIron to cNewIron + (CNTRef.GetItemCount ChainmailHelmetWorn * 1) set cNewIron to cNewIron + (CNTRef.GetItemCount ChainmailGauntletsWorn * 1) set cNewIron to cNewIron + (CNTRef.GetItemCount ChainmailBootsWorn * 2) set cNewIron to cNewIron + (CNTRef.GetItemCount ChainmailGreavesWorn * 4) set cNewIron to cNewIron + (CNTRef.GetItemCount ChainmailCuirassWorn * 8) set cNewIron to cNewIron + (CNTRef.GetItemCount ChainmailShieldWorn * 3) set cNewIron to cNewIron + (CNTRef.GetItemCount IronHelmetWorn * 4) set cNewIron to cNewIron + (CNTRef.GetItemCount IronGauntletsWorn * 4) set cNewIron to cNewIron + (CNTRef.GetItemCount IronBootsWorn * 6) set cNewIron to cNewIron + (CNTRef.GetItemCount IronGreavesWorn * 12) set cNewIron to cNewIron + (CNTRef.GetItemCount IronCuirassWorn * 20) set cNewIron to cNewIron + (CNTRef.GetItemCount IronShieldWorn * 8);then you return the result to the "mother script"setfunctionvalue cNewIronend
set cNewIron to call fucntionCountItems CNTRef
set cNewIron to cNewIron + call fucntionCountItems CNTRef
scn fucntionCountItemsshort cNewIronbegin Function {};this is your code you copypasted here set cNewIron to cNewIron + (GetItemCount ChainmailHelmetWorn * 1) set cNewIron to cNewIron + (GetItemCount ChainmailGauntletsWorn * 1) set cNewIron to cNewIron + (GetItemCount ChainmailBootsWorn * 2) set cNewIron to cNewIron + (GetItemCount ChainmailGreavesWorn * 4) set cNewIron to cNewIron + (GetItemCount ChainmailCuirassWorn * 8) set cNewIron to cNewIron + (GetItemCount ChainmailShieldWorn * 3) set cNewIron to cNewIron + (GetItemCount IronHelmetWorn * 4) set cNewIron to cNewIron + (GetItemCount IronGauntletsWorn * 4) set cNewIron to cNewIron + (GetItemCount IronBootsWorn * 6) set cNewIron to cNewIron + (GetItemCount IronGreavesWorn * 12) set cNewIron to cNewIron + (GetItemCount IronCuirassWorn * 20) set cNewIron to cNewIron + (GetItemCount IronShieldWorn * 8);then you return the result to the "mother script"setfunctionvalue cNewIronend
set cNewIron to CNTRef.call fucntionCountItems
scn fucntionCountItemsshort cNewIronbegin Function {};this is your code you copypasted here set cNewIron to cNewIron + (GetItemCount ChainmailHelmetWorn * 1) set cNewIron to cNewIron + (GetItemCount ChainmailGauntletsWorn * 1) set cNewIron to cNewIron + (GetItemCount ChainmailBootsWorn * 2) set cNewIron to cNewIron + (GetItemCount ChainmailGreavesWorn * 4) set cNewIron to cNewIron + (GetItemCount ChainmailCuirassWorn * 8) set cNewIron to cNewIron + (GetItemCount ChainmailShieldWorn * 3) set cNewIron to cNewIron + (GetItemCount IronHelmetWorn * 4) set cNewIron to cNewIron + (GetItemCount IronGauntletsWorn * 4) set cNewIron to cNewIron + (GetItemCount IronBootsWorn * 6) set cNewIron to cNewIron + (GetItemCount IronGreavesWorn * 12) set cNewIron to cNewIron + (GetItemCount IronCuirassWorn * 20) set cNewIron to cNewIron + (GetItemCount IronShieldWorn * 8);then you return the result to the "mother script"setfunctionvalue cNewIronend
set cNewIron to CNTRef.call fucntionCountItems
scn fucntionCountIronshort cNewIronbegin Function {};this is your code you copypasted here set cNewIron to cNewIron + (GetItemCount ChainmailHelmetWorn * 1) set cNewIron to cNewIron + (GetItemCount ChainmailGauntletsWorn * 1) set cNewIron to cNewIron + (GetItemCount ChainmailBootsWorn * 2) set cNewIron to cNewIron + (GetItemCount ChainmailGreavesWorn * 4) set cNewIron to cNewIron + (GetItemCount ChainmailCuirassWorn * 8) set cNewIron to cNewIron + (GetItemCount ChainmailShieldWorn * 3) set cNewIron to cNewIron + (GetItemCount IronHelmetWorn * 4) set cNewIron to cNewIron + (GetItemCount IronGauntletsWorn * 4) set cNewIron to cNewIron + (GetItemCount IronBootsWorn * 6) set cNewIron to cNewIron + (GetItemCount IronGreavesWorn * 12) set cNewIron to cNewIron + (GetItemCount IronCuirassWorn * 20) set cNewIron to cNewIron + (GetItemCount IronShieldWorn * 8);then you return the result to the "mother script"setfunctionvalue cNewIronend
set cNewIron to CNTRef.call fucntionCountIron