EAP

Villager
Member
Joined
Jan 29, 2019
Messages
17
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Thanks.
Yep! So in that example you'd want to see if the player has more than 5 of items 1, 2, 3, and 4.
Thanks Tested myself before you replied but got my crafting quest system working with this script.
 

Alkaline

Veteran
Veteran
Joined
Jun 30, 2020
Messages
40
Reaction score
6
First Language
English
Primarily Uses
RMMV
Would I be able to compare one variable's value with other two?

I.e. If Variable A >= Variable B and Variable A >= Variable C
Show Text: "Your variable A is greater than both B and C"
 

JorgeMaker

Veteran
Veteran
Joined
Jan 14, 2020
Messages
48
Reaction score
41
First Language
Português - BR
Primarily Uses
RMMZ
Would I be able to compare one variable's value with other two?

I.e. If Variable A >= Variable B and Variable A >= Variable C
Show Text: "Your variable A is greater than both B and C"

JavaScript:
Check.each_greater([A, $gameVariables.value(B)], [A, $gameVariables.value(C)]);
//or
($gameVariables.value(A) >= $gameVariables.value(B) && $gameVariables.value(A) >= $gameVariables.value(C));
 

Latest Threads

Latest Profile Posts

Mr_Petue wrote on GamchiSamwise's profile.
hey pepe, why do you have a gun on your head? where is wojak?
Still alive! Totally did not finish in time for the Jam (boy that's late) but tl;dr of the last half a year is Work term -> Covid Lockdown -> Sick... again -> Full time Employment. Game stuff has been on hiatus but got a new graphics tablet so hopefully updates again soon. =D
Going on hiatus. Won't be back until mid October.:LZSoops:
Just read the English lyrics for Despacito. Ramen aint innocent no more! :kaodes:
Well today was blown away with nothing to show for it. I made a new character to my game who I was going to have a protection mechanic where he protects my main character randomly unless it's a critical, and no matter what, to check if an attack received will be critical, means checking the apply method. This means rewriting the entire method and I refused to do that.

Forum statistics

Threads
115,319
Messages
1,088,906
Members
149,964
Latest member
Valkyrie30
Top