Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
561
Reaction score
239
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
561
Reaction score
239
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
561
Reaction score
239
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 Profile Posts

image_2021-06-13_213812.png

Todays Lesson: Tiles are a pain to make xD
The game is not even 2% complete, but i just wanted to release something for funsies. :)
It's on my google drive.
It would be awesome if i could get a couple ideas and the like!
So yesterday Dad took me to Volcano Bay, and it was almost ruined by a thunderstorm... then it passed by and the lightning warning got lifted, leading to an awesome time sliding and swimming. Hopefully we get to go to the arcade tonight. The one we're planning on has a restaurant built in with AWESOME food. Not to mention how big the arcade itself is!
image_2021-06-13_150033.png

Maybe I'll actually try making a retro pack. Already have the shark fin made so why not xD
Hey everyone, for everybody following along with my RPG Maker MZ streams: There will unfortunately not be a stream tonight. There is a big exciting event that will go live next week that has been taking all my time, so look forward to that!

Forum statistics

Threads
112,201
Messages
1,066,542
Members
145,809
Latest member
StShiner
Top