- Joined
- Mar 24, 2014
- Messages
- 579
- Reaction score
- 219
- First Language
- English
- Primarily Uses
- RMVXA
I'm using a combination of N.A.S.T.Y. Extra Stats and Crystal Engine - Stat Formulas.
I want to use the extra stats provided by the first script within the stat formula of the second script.
(notetag for Extra Stats)
<xstat>
:str => '0',
:con => '0',
:dex => '0',
:int => '0',
:wis => '0',
:cha => '0',
<xstat_end>
(notetag for Stat Formulas)
<stat> # Sets the stat formulas up.
stat => formula, # Be sure to put a colon on the stats.
</stat> # The formula can be any valid ruby expression that returns a number.
So, if I wanted a Stat Formula to work like this:
2 * xstat.str * xstat.str / 120 + (2 * xstat.con) * level
How would I get this to actually work?
<stat>
0 => '2 * xstat.str * xstat.str / 120 + (2 * xstat.con) * level',
</stat>
I'd just get a NameError saying something about an undefined local variable.
I want to use the extra stats provided by the first script within the stat formula of the second script.
(notetag for Extra Stats)
<xstat>
:str => '0',
:con => '0',
:dex => '0',
:int => '0',
:wis => '0',
:cha => '0',
<xstat_end>
(notetag for Stat Formulas)
<stat> # Sets the stat formulas up.
stat => formula, # Be sure to put a colon on the stats.
</stat> # The formula can be any valid ruby expression that returns a number.
So, if I wanted a Stat Formula to work like this:
2 * xstat.str * xstat.str / 120 + (2 * xstat.con) * level
How would I get this to actually work?
<stat>
0 => '2 * xstat.str * xstat.str / 120 + (2 * xstat.con) * level',
</stat>
I'd just get a NameError saying something about an undefined local variable.
