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

Today was not a really productive day, but at least i got some bust sketches going <3
E7QXZHNXoAIkpG8
hmm in exploring MZ with FOSSIL... I see I'll probably need to stick with MV for now as none of the menu altering plugins I use work on MZ lol. and I don't have the money to dump into what I would need in some cases to update plugins to their MZ versions. Everytime I think of converting, 5 or more reasons popup on why I shouldn't.
Hmm... Game has 91 views, 25 downloads, 5 reviews and netted me 7 additional followers. Meanwhile the image I posted just yesterday on Imgur to showcase it has 45,197 views. Interesting, I think I have a new advertising idea. Also Twitter? The post got 16 retweets, 20 likes, and 1,683 views.... And a whole 3 hits to my game, completely valueless. I am glad I did this game jam, this information is quite valuable.
We're playing another Touch the Stars game jam entry, come join us! :D
Ok is telling someone that their drawing isnt good rude

Forum statistics

Threads
113,656
Messages
1,076,479
Members
147,678
Latest member
SLTY
Top