Need help with Javascript $calc

KingLi

Villager
Member
Joined
Mar 19, 2018
Messages
22
Reaction score
5
First Language
English
Primarily Uses
RMMV
So I have a Javascript "$calc.shield= 2;" which gains me shield like an extra HP but blue. how can i set it so that lets say i have 9 shields and the max is 10 so how can i make the script to give me shield of to a max of 10 and not go over it?
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,948
Reaction score
1,054
First Language
Dutch
Primarily Uses
RMMV
if its a plugin, we need to know the plugins name/link to it if you want more help.
we cant just guess the plugin and give your the wrong answer.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,710
Reaction score
1,127
First Language
Portuguese - Br
Primarily Uses
RMMZ
Do you use that in a script call? Or it is inside a specific plugin?
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top