array

  1. Jonforum

    indexOf syntax for multidimensional arrays?

    hi i know i can do the function with (for) and (loop), but logically, am supposed to be able to get the indexOf ? Why my function to search index in a 2D array alway return me False (-1) ??? If you add this to console.log //------------------------------------------ gate1=[]...
  2. Jonforum

    Little question about Object property with array

    Hi I am building my quest system. I use for Quests the Rmmv Armors Items, $dataArmors[], because I do not use this DB in my project. At the beginning of the game, I inject all in $dataArmors [?].meta my individually properties for Quest. I write them in a .js file, because the comment...
  3. Skotty TV

    Help! Get map data array

    Hi There! I just want to know if anyone (good scripter) can help me out. I want to create a new array with all map info stored in -> - var array = []; - array[1] = Map001.json something like this... The thing is, in $datamap is always just the last map stored. And $dataMapInfos...
  4. [ACE] Creating and returning skill notetag array data?

    So, I have managed to use text from skill notetags as data before (see below), using examples from scriptors. But this data has always been based on numerical digits and not arrays, and I'm not really experienced with or can comprehend enough of Regexp processes to figure this out myself...
  5. Silverskin

    Get the array length of states in a condition?

    Hey, for a skill that cures all negative states, I want to write a pice of my own code inside Yanflys action sequence. It looks like this: the ".meta.good" is already coded elsewhere and works perfectly fine. It flags states as good and not affected by luk's chance of not getting it...
  6. Jonforum

    How Exlude, remove variable in array ?

    Hi guys I have a complex problem in a formula. I formulate to minimum to be clear. I wish I could remove the first variable found in the second process. These possible? // variable initialisation A = 3 B = 5 T = 1 X = 4 // Now found the most big valur ItemQ = new Array(A,B,T,X);  ItemL =...
  7. Ariaka

    Starting small, best way to define a species

    I decided to learn Javascript to make a plug-in for a breeding game. Jeremy Cannady did a wonderful job making a basic breeding plugin when I made a request, but it simply did not do what I was looking for...
  8. ICF-Soft

    Array into an array into an object

    I am trying to enable an array filled with arrays throught the notebox, but I'm stuck trying to make it work and I don't know where is the problem. It starts aliasing DataManager.isDatabaseLoaded and add notetags on enemies: DataManager.processEnemyNotetags = function(group) { var note1 =...
  9. SumRndmDde

    How to get array of Actor's Armors?

    So here's what I'm trying to do.   I want to create some Notetags in the Armor Database that say <applesGained: x> <applesLost: x>   Then, I want to add them all up based on which ones the specific Actor is wearing, so I created this function:   var processDemArmors = function(actor){ ...
  10. Problems with Arrays

    I'm having a really hard time dealing with arrays in RMMV. If I create an event and use a script inside like this: var ar = [];ar[0] = "example";Then I can use the array value during only this event. The array will not persist through the gameplay or other events. If I try to use the value...
  11. nio kasgami

    how to input a array in a hash?

    Hi people I was working on my script and for convenience sake I wanted to be able to input method in array but I use for configurations Hash if I show  hashconfig ={ :array_method =[1,1]}I want to being able to extract the content for use it...and no I don't want to spare that into a different...
  12. Conditioning an array of variables? ($game_variables[1] equal to 1 or 3 or 7 etc)

    I want to make a condition that's quick, something like maps = [1, 2, 4, 7, 9, 10, 15, 16, 17];$game_variables[1] == $game_variables[1].any? {|i| maps.include?(i)}$game_variables[1] being the current map id, to condition if the current map is any of those numbers is the array. But I'm not...
  13. Quickly condtion an array? (e.g. $game_variables[1] != [0,1,4,6,7])

    Instead of saying variable 1 is not equal to 1 and variable 1 is not equal to 7, I want to say variable 1 is not equal to "the following things", to make it faster and easier and to fit in script calls without need of a script call extender. Hm, I would wonder how I could do in a script call...

Latest Threads

Latest Posts

Latest Profile Posts

I want to see the Features of the new RPG Maker.. NOW!!
Can't wait for it!
KDS
Check out some gameplay of a game iam working on :)
Me : "Wearing glasses is annoying."
*put out glasses*
Also me : "Keep mistaking 0, 6 and 8."
oh god, a new version of RPG Maker is coming soon already....
So a new RPG Maker has been teased on RPG Maker Web's Twitter. Hmm...

Forum statistics

Threads
98,126
Messages
949,480
Members
129,404
Latest member
alvin23
Top