N.A.S.T.Y Extra Stats

Asking in a script topic is not necroposting, those are exempt from that rule.


However, you need to explain better what you want and where you have problems with the script before anyone can help you.
I'm using RPG maker XP. I'm having some trouble implementing this script. I already have a few other scripts already working. Blizz-ABS, Sideview Battle System Tankentai, and Equipment skills. Don't ask me why I have both Blizz and Tankentai. It's complicated. Seeing as these are new stats, I don't think my other scripts are interfering.

I'm confused on what to change here. Where do I need to change the script? Can I see an example?

I want my additional stats to be anger, awareness, confidence, empathy, fear, and will. Each of them starting at 1. I don't want them to change with leveling, only when I modify the stats in game.

This looks like an awesome script. Can someone point me in the right direction? A demo maybe?

OOPS. I realised that I'm using XP, and this is for ace. Thanks for the script anyway. I found another version I might use using simple variables.
I'm using RPG maker XP. I'm having some trouble implementing this script.
This is a script for ACE, not for XP - and the database between XP and Ace is extremely different in addition to the language changes from RGSS to RGSS3.
You would need a big rewrite to get this operational in XP, so I suggest looking for a different script that does something similiar for RMXP.
I plan on using this script, and I'd like to use it with a custom script I have for a status screen. Is there a way to get the below format to point to a stat that is in the character's notetag?


For example, say I have this in a character's notetag


<xstat>
:str => '11'
:con => '12'


:dex => '13'
:int => '14'
:wis => '15'
:cha => '16'
<xstat_end>


and let's also say that when I go to party screen and then go to that character's status screen, I want it to show all the numbers from the notetag next to the matching terms for that character's stats. (strength, constitution, etc.)


Here is a sample of the code from the status screen I currently use:


def vitality
        param_base(3)
    end


using strength for example: how do I modify it in order for it to do this?


def strength
        [show number for "strength" from that character's notetag]
    end
So.... I tried using one of the stats in a damage formula, but the ability who has the stat in its formula can't damage enemies.


What am I overlooking?
@Gabrepasta please show us a screenshot of that skill, and we can tell you what might have gone wrong.
@Andar Nevemind, actually. Another script seemed to somehow overwrote the everything before "- b.def".


Good thing I actually didn't need the other script after all.
Is it possible to use this script on states (to add/subtract xstats)? I have tried using tags and other scripts but nothing seems to work!

Edit: Nevermind, I figured a way to get it to work.
Is it possible to use this script on states (to add/subtract xstats)? I have tried using tags and other scripts but nothing seems to work!

Edit: Nevermind, I figured a way to get it to work.
What did you do to get it to work? I want to make consumable items that temporarily increase or decrease xstats, but there doesn't seem to be anything in the script which allows it. I don't know how to code either.
I used this script:

https://forums.rpgmakerweb.com/index.php?threads/state-add-remove-commands.51371/
But the script looks like it's for MV, not VX Ace. Does it still work in VX Ace?

EDIT: I noticed the link to the Ace version at the bottom. Is that what you used?

EDIT 2: What commands did you use? I don't really know anything about how to code with Ruby.
Apologies, I meant to link the Ace version. It's been a long time since I moved over to MV and I can't find my old project but I simply made a blank state with onadd: xstat+1 and onremove: xstat-1. That way it adds the stat when you get the state and removes it after you lose it.
Apologies, I meant to link the Ace version. It's been a long time since I moved over to MV and I can't find my old project but I simply made a blank state with onadd: xstat+1 and onremove: xstat-1. That way it adds the stat when you get the state and removes it after you lose it.
So for a state, I used

onadd: str+1
onadd: dex+1
onadd: con+2
onremove: str-1
onremove: dex-1
onremove: con-2

for the commands, but when I use the item, I get an error that says "undefined local variable or method 'str' for the game actor I used the item on".
Try using xstat.str, xstat.dex, etc.
Try using xstat.str, xstat.dex, etc.
The state applies, but there are no changes in the xstat on the status page and the stat itself doesn't change. My state looks like this for the onadd commands:
onadd: xstat.str + 1
onadd: xstat.dex + 1
onadd: xstat.con + 2

I have also tried self.xstat.str + 1, xstat.str+1, xstat.str(1) @xstat.str + 1 , and other combinations, but I can't for the life of me figure out a working solution. I'm just taking random shots in the dark here, and barely even understand what I am typing for the commands.
Are you putting it on the state's tag? It worked for me.
The state's tag? Do you mean the notebox? I am putting it in there.
022v1gI.png

With it working for you, this is in VX ACE right? Can I see a screenshot of what you are doing?
Are you putting it on the state's tag? It worked for me.
Could you be more specific? I don't know if you saw my most recent post or not.
You missed the = sign from your note-tags.
They should look like:
Code:
onadd: xstat.str += 1
onadd: xstat.dex -= 1
You missed the = sign from your note-tags.
They should look like:
Code:
onadd: xstat.str += 1
onadd: xstat.dex -= 1
It works! Thank you so much, you have no idea how much this was bothering me.

Original thread: https://forums.rpgmakerweb.com/threads/n-a-s-t-y-extra-stats.998/