Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
320
First Language
PT-BR
Primarily Uses
RM2k3
I did the test and it worked, maybe variable 118 has become a String.
 

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
178
Reaction score
38
I did the test and it worked, maybe variable 118 has become a String.
what i want to achieve is when a card drawn is from the array of legend cards.. a special flash screen or special sound or special picture occurs.. how do i reverse it? or should i just assign a new gameVar?1619695912037.png
i ran the code on the game console this what it shows
 
Last edited:

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
320
First Language
PT-BR
Primarily Uses
RM2k3
I don't know what may be causing the problem, maybe some function has been replaced.
array-includes_rez.png

Try to run one command at a time, without the "var" prefix:
  1. pool = [1,2,3,4,5] Press (Enter)
  2. pool.includes(10) Press (Enter)
  3. pool.includes(3) Press (Enter)
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
320
First Language
PT-BR
Primarily Uses
RM2k3
Try to do the test from your internet browser console and if possible install others to do the same test.
If nothing works it will be necessary to create the function manually.

Edit:
JavaScript:
Array.prototype.includes=function(el,ind){
   var exist=false;
   if(!ind){
      ind=0;
   }
   for(i=ind;i<this.length;i++){
      if(this[i]==el) {
         exist=true;
      }
   }
   return exist;
}

Or:
JavaScript:
Array.prototype.neoincludes=function(el,ind){
   var exist=false;
   if(!ind){
      ind=0;
   }
   for(i=ind;i<this.length;i++){
      if(this[i]==el) {
         exist=true;
      }
   }
   return exist;
}
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

In the past hour I've both joined and left the RPG Maker subreddit. So many memories were made. Power to the gam mak!
So the number one complaint I get so far is the levels are simply too large. What's funny is in testing I deemed levels taking too long and actually shortened them. Figuring I could beat them in 5-6 minutes so players would be able to do so in probably double that. I was apparently very mistaken, only one player has mentioned even reaching the second area. Let alone the first boss. :kaoswt:
I don't believe it. I actually did some proofreading in my game - and fixed some grammar errors! I feel so accomplished, knowing I can actually proofread my own writing!
...I've had a bad day, okay? Bad enough for me to want to proofread stuff. :yswt2:
Ughhh, July is not my month. Thankfully, it's nearly done.
mercba30 wrote on Jesse - PVGames's profile.
How do I get the new version of the character creator? Thank you in advance!

I fixed the lips and noses for MZ! The files have been updated.
qQwgk8C.png

Everything below!

Forum statistics

Threads
113,675
Messages
1,076,591
Members
147,695
Latest member
GirlintheToilet
Top