How/can I set a player's stat from a variable?

Lunarcomplex

Villager
Member
Joined
Oct 3, 2015
Messages
20
Reaction score
5
First Language
English
Primarily Uses
RMMV
Instead of having Attack, HP, Agility, etc go up by a players level, I was wondering how (if it's possible) I would be able to manually change the players stats with a script call. For example, I would like to have the player increase their stats by collecting items. Once a player collected the correct stat increasing item for Attack, he/she could convert this item at a place into an Attack stat increase. The item really isn't important in this case, but if there's a script call to increase player's/actor's Attack stat by 1, I would need to know how I would be able to do that, aswell as set them to any number I'd like, say from a variable.
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
556
Reaction score
794
First Language
English
Primarily Uses
RMMV
First I'd say you'd have to make all the enemies give the player no exp, to prevent them from leveling up.
Inside the actual editor you can call an event or create common events that increase the Actor's stats.



There's also the script call list here: https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0


Changing actor information is under actor; you can use the calls listed there to change actor information, but you need to insert an actorId.


Hope this helps.
 
 

Lunarcomplex

Villager
Member
Joined
Oct 3, 2015
Messages
20
Reaction score
5
First Language
English
Primarily Uses
RMMV
Yes, it does! Thank you so much for your help! =D
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top