N.A.S.T.Y Extra Stats

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 

ranafire1

Warper
Member
Joined
Oct 2, 2015
Messages
1
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 

sentinelshade

Villager
Member
Joined
Mar 17, 2016
Messages
9
Reaction score
2
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Gabrepasta

Veteran
Veteran
Joined
Dec 1, 2013
Messages
35
Reaction score
0
First Language
German
Primarily Uses
RMMV
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
@Gabrepasta please show us a screenshot of that skill, and we can tell you what might have gone wrong.
 

Gabrepasta

Veteran
Veteran
Joined
Dec 1, 2013
Messages
35
Reaction score
0
First Language
German
Primarily Uses
RMMV
@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.
 

Robin Hoot

Veteran
Veteran
Joined
Feb 14, 2016
Messages
83
Reaction score
22
Primarily Uses
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.
 
Last edited:

Ninjakillzu

Veteran
Veteran
Joined
Aug 19, 2013
Messages
263
Reaction score
218
First Language
English
Primarily Uses
RMVXA
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.
 

Ninjakillzu

Veteran
Veteran
Joined
Aug 19, 2013
Messages
263
Reaction score
218
First Language
English
Primarily Uses
RMVXA
Last edited:

Robin Hoot

Veteran
Veteran
Joined
Feb 14, 2016
Messages
83
Reaction score
22
Primarily Uses
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.
 

Ninjakillzu

Veteran
Veteran
Joined
Aug 19, 2013
Messages
263
Reaction score
218
First Language
English
Primarily Uses
RMVXA
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".
 

Ninjakillzu

Veteran
Veteran
Joined
Aug 19, 2013
Messages
263
Reaction score
218
First Language
English
Primarily Uses
RMVXA
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.
 
Last edited:

Robin Hoot

Veteran
Veteran
Joined
Feb 14, 2016
Messages
83
Reaction score
22
Primarily Uses
Are you putting it on the state's tag? It worked for me.
 

Ninjakillzu

Veteran
Veteran
Joined
Aug 19, 2013
Messages
263
Reaction score
218
First Language
English
Primarily Uses
RMVXA
The state's tag? Do you mean the notebox? I am putting it in there.

With it working for you, this is in VX ACE right? Can I see a screenshot of what you are doing?
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
You missed the = sign from your note-tags.
They should look like:
Code:
onadd: xstat.str += 1
onadd: xstat.dex -= 1
 

Ninjakillzu

Veteran
Veteran
Joined
Aug 19, 2013
Messages
263
Reaction score
218
First Language
English
Primarily Uses
RMVXA
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,567
Latest member
sashalag
Top