1. Vis_Mage

    RMMV Help with Learning Arrays

    Hello! :kaohi: Would someone be able to help me with figuring out how to use arrays with variables? I'm hoping that learning how to use them will cut down on a lot of cumbersome chains of conditional branches needed in complex eventing. There are three different systems that I am looking to...
  2. RMMZ Conditional array

    I'm trying to do a conditional branch to determine the amount of days in that month I have my game variables set as: 0001 Day of Week 0002 Week (number of weeks passed) 0003 Month 0004 Day of Month 0003 ranges from 1-12 I know months 1, 3, 5, 7, 8, 10, and 12 have 31 Days Month 2 has 28...
  3. Speedvore

    RMMZ [Solved] Need Help with Storing Values within an Array Variable

    I'm working on making a custom battle system that uses character friendship points to determine various mechanics. I'm currently having trouble efficiently tracking these friendship stats between characters. The game I'm working on is planned to have tons of playable characters, much like Chrono...
  4. ct_bolt

    RMMZ [Javascript] Shifting only select elements of array?

    Another one for ya guys... kind of has me stumped... Shifting only select elements of array while keeping the rest of the array as is though. Example: const a = ["A", 4, "B", "C", "D", 1, 2, 3]; How would I shift only the numbers while keeping the rest of the array as is. So the first shift...
  5. Xyonel

    Strange behavior of .match() function..

    hey I'm here again asking for infos: this is the first common event script call that works well: function makeid(length) { var result = ''; var characters = 'LETTERS'; for ( var i = 0; i < length; i++ ) { result += characters.charAt(Math.floor(Math.random() *...
  6. Xyonel

    how to insert automatically a bunch of data with "for" into an array?

    wordList = [] for ( i=0; i<16; i++){ actorName = $gameActors.actor(i).name.toUpperCase(); wordList.push(actorName(i)); } this does not work, someone have a solution? i'm beginner in javascript for now, still learning. cannot read property " name " of null.
  7. _Shadow_

    Javascript: I want to turn a csv into an array and play with it.

    This is kinda noobish question really. Imagine we got a file at the same folder with the game. Let's say we got a CSV file named ab.csv with a line on it being: STR STR STR STR STR INT INT INT text1, text2, text3, text4, text5, 9, 4, 1 Now imagine 500 lines like that. I want to...
  8. aporokizzu

    Separate, private $gameScreen._pictures array?

    From what I understand, $gameScreen._pictures is the array that holds all of the Game_Picture objects that are shown on the map, and it has a maximum size of 100 array items for this. It seems to reserve items 200 and up for battle images (?) but my project uses an ABS system so I haven't...
  9. Hisao Shou

    Getting array for $gameMap.event

    Hello there, I'm new in javascript programming, and I'm having difficulties to get an array of map ids for $gameMap.event. I basically want to do Something like: var arr = [3, 5, 6]; //array of certain events return $gameMap.event(arr); //returns to any event which has the ids from array Can...
  10. Eliaquim

    Checking any equal values inside an array

    Hi people! Well, after I see a lot of things on the internet, I can't figure that out. I see some examples with .some() and with .every() but I can't manage to put it in my code and it works. In the code below, the variables a,b,c will get a random value between 0 and 3. So, if any of them are...
  11. _Shadow_

    Text file strings to array

    Hello again community. It happens that I want a plugin to be able to do two things (same plugin can do both). 1] Take text from file and add it on Array Variable of our choice. Then call it like \v[1][2] (third entry on variable 1) 2] ... if we leave a containing method intact. Otherwise...
  12. Nilom

    Method or Function to return right order of item pick-ups

    Hello! Is there a method or a function in the RPG Maker built-in methods/functions that will return the inventory items in the correct order which they have been picked up? $gameParty._items seems to just sort the items by database ID. I know an array could be used for this but that would...
  13. Nilom

    .push() is not a function ._. [solved]

    Hello! I used .push() for a card drawing skill system before. But when I try to do something similar and store movement commands (numbers) inside an array then I get ".push()" is not a function. What did I do wrong? I just do not see it: if...
  14. LazESigma

    Script call to see if a variable exists in an array.

    Hello, I'm trying to simulate some aspects of a roulette wheel in a gambling game. I'm using variables and currently have the numbers working. I'm attempting to use a variable array to easily check if the Number entered is either Red or Black. Rather than have 36 conditional branches, I was...
  15. Tsar CUBE

    Arrays In Variables And How To Check If Value Is Present In Array!?

    Hello! I have noticed that it is possible to set a whole bunch of interesting things to be present inside a Variable from one of the threads on this forum :) What I need to know is how to add values to a Variable that holds a given array and then how to check if that value is present. I need...
  16. Rink27

    Weird Array Pop() Behaviour

    I've been working on a plugin I created and noticed something odd. The following is a representation of piece of my code: var array = $gameVariables.value(x); var array2 = $gameVariables.value(y); // x and y were given the same values //EDIT: I meant x and y represent different numbers, but...
  17. Catog

    YEPEquipSkills Return Array as Variable

    Hi all, For my game I'm using a mix of HIME's ActorBattleCommand/BattleCommandUseSkill and Yanfly's EquipBattleSkills. I've set up a common event with the intention of: "when a character has a skill equipped, the battle command shows, and when it's unequipped, it's hidden." The method I'm...
  18. AdamSakuru

    Target Core - Updating Target Array After Death During Random Skill

    In my game I have a skill that hits 3 random enemies. I noticed sometime after making it that if any enemy dies during the first or second hit of the skill, the now non existent enemy still has a chance of being targeted for the following hits. I'm surprised this happens as I think it defeats...
  19. Timespiraled_RPG

    Removing a Single State at Random (Lunatic Objects Package - Destruction)

    I'm looking to add a way of removing only a single state at a time instead of the regular Dispel/Esuna type skills removing absolutely everything at once. I'm using Yanfly's Lunatic scripts to use their base implemented functions but as I'm not a scripter myself, I'm having trouble wrapping my...
  20. Add 1(numeric) or more to all values in array

    hi, i think it's a basic question, but still so here, i have a variable array V[67] as you can see, i want to add all the values in variable array V[67] with + 1 i make a parallel event to check: if V[67][0] = 1? and if yes, it self switch A= on, if not, will not do anything but not just one...

Latest Threads

Latest Profile Posts

this is Remade of my MZ Character,after acquire the free RPG Maker MZ
This One Plugin Adds Subfolder Support for Every Other Plugin | RPG Maker News #80

It's been so long... lol
Theydies and gentlethems, presenting Touch the Stars character #1: Anna Smith and her transformed form, Sagittaria!1624568259771.png
Anyone seen Dsiver around?

Forum statistics

Latest member