- Joined
- Jul 17, 2015
- Messages
- 7
- Reaction score
- 1
- First Language
- English
- Primarily Uses
- RMMV
Hey everyone,
I'm using Yanfly's Item Core plugin alongside ICFSoft's Param Core (Link).
What I'm trying to do is access a js variable that was assigned by a independent item during the "<On Creation Eval>" tag so that my custom stat can increase in value based on the generated number.
What I have is:
And whenever I paste the following code right underneath that tag,
Nothing happens. My knowledge of JS isn't that wide yet to know how to access such information.
This is all within the same item, and not trying to access it from skills and whatnot.
I'm not sure if it's possible, but it's worth to see if it is.
I'm using Yanfly's Item Core plugin alongside ICFSoft's Param Core (Link).
What I'm trying to do is access a js variable that was assigned by a independent item during the "<On Creation Eval>" tag so that my custom stat can increase in value based on the generated number.
What I have is:
JavaScript:
<On Creation Eval>
var strBonus = Math.floor(Math.random()*5)+5;
</On Creation Eval>
And whenever I paste the following code right underneath that tag,
JavaScript:
<CUSTOM NPARAMS>
str = strBonus;
</CUSTOM NPARAMS>
This is all within the same item, and not trying to access it from skills and whatnot.
I'm not sure if it's possible, but it's worth to see if it is.