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

I'm familiar with MZ thanks to jam now. I say it's a better working and looking MV. Lots of plugins too and FOSSIL helps alot. It's not bad.
Some more progress <3 and in most important news:
ALPACARAPTOR SPRITE! (not animated yet, though :( )
h4u90Sz.png
Caz
At the risk of giving myself even more work to do, I kinda wanna redraw the faces of the MV RTP to be a little less.. uhhhhh..

mv-redraw.png
Hmm...you'd think in this day and age, what with Japanese Schoolgirls frequenting anime, JRGs and whatever else...that someone might have made some gym clothes for the generator. You know, the ones with the short bloomers.
finished the draft of some of this dude's motions!

mc0xoB4.gif


gonna work on the drafts of the other 3 now before i put detail, need to position these rather tall sprites well on the field

waiting for the term to end so i can get more time w this :kaodes:

Forum statistics

Threads
113,641
Messages
1,076,386
Members
147,661
Latest member
GLODZIO
Top