Variables in Combat

Treckie

Villager
Member
Joined
May 31, 2019
Messages
9
Reaction score
1
First Language
German
Primarily Uses
RMXP
First of all: Sorry if I post this in the wrong thread, still kind of new to the world of forums.

I am searching for a possibility to use variables in order to alter some stats during the combat.

To put it simple:
I am trying to make some kind of berserker-class, which uses rage.
Every move that berserker makes creates some rage until he reaches 100. Then the "bar" resets itself to 0 and he gets a buff to increase his damage for 3 turns. But every point of rage itself should also increase his damage by a small percentage.

Is there some way to do that? And is it possible to change other stats in the same way?
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,923
Reaction score
534
First Language
English
Primarily Uses
N/A
I'm also curious on how to have a static increase in stats using variables. but this can be done easily with common events and using v[N] in your damage formulas. In the common event the skill attaches to, have it increase the variable. When the variable reaches a certain number, have a conditinal branch that resets the variable and adds a state

in the damage formula, do something like: a.atk*4/((b.def/1.5)) + ((v[7]/3)) (If variable 7 is the one you choose for this). Then attach it to a common event which does what i mentioned above
 

Treckie

Villager
Member
Joined
May 31, 2019
Messages
9
Reaction score
1
First Language
German
Primarily Uses
RMXP
I still dont know, where I could edit the damage formula...
But the rest is totally clear to me - I could scold myself right now for not finding that solution by myself.

But I guess I cannot attach those formulas to a basic attack of that character... Another useless basic. :D
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,923
Reaction score
534
First Language
English
Primarily Uses
N/A
You can use variables in a damage formula with v[n]. Where n is the variables ID number
 

Treckie

Villager
Member
Joined
May 31, 2019
Messages
9
Reaction score
1
First Language
German
Primarily Uses
RMXP
I have already read about it somewhere but I dont know, where I can enter those values. Thats my big problem^^
I saw that screen in VX Ace but nowhere in XP.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
281
Reaction score
106
First Language
English
Primarily Uses
RMXP
Yeah that is a VXA thing, not XP. You have to look into your Game_Battler 3 script for the damage formulas. And use $game_variables[ID] to access a variable.
 

Treckie

Villager
Member
Joined
May 31, 2019
Messages
9
Reaction score
1
First Language
German
Primarily Uses
RMXP
Thanks for your answer.
Now I have to figure out how to read and edit it properly but I guess I can do that by myself.
 

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,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top