1. Can I do math in arrays

    Say I have an array set to [5,5,5] and I want to subtract from the second number in the array by one and add to the first number 2, so it's now [7,4,5]. How can I do this? I know you can directly change the numbers in the array, but for what I'm doing I actually want to be able to perform math...
  2. Random Panda

    Self Switch Script call for multiple events on a map

    Hi All, I need to use $gameSelfSwitches.setValue([$gameMap._mapId, EVENTID, 'A'], false); But for EVENTID I was hoping to use an array of multiple event IDs so I don't have to redo that code for multiple events. Something like this, but you know, done correctly: var E = [1,5,9, etc.]...
  3. _Shadow_

    Double Dimension arrays.

    I found a solution on one of my major issues I had, while I was thinking of implementing an idea into an actual game. Here goes the solution on the thread I opened for your reference...
  4. 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...
  5. professorbeej

    Mark All Tiles Impassible in a Tileset

    Hey, folks! I want to get into plugin development, so I figured I'd start out by trying to alleviate an issue I have that I can't find a plugin for. Personally, I hate individually marking tiles with 0, X, * because I have far more X tiles than anything else. So I want a plugin that can either...
  6. Llareian

    Better way to add values to a $gameVariables array?

    I have variables that are used to store arrays of numbers. I want to be able to push new values onto those arrays (and splice them out when no longer needed). Currently I'm using the method below to push the value of variable 16 onto the array variable 15: var tempArray =...
  7. ZelsesWind

    Using an Array to create a highest to lowest list.

    Hello everyone. I want to make the game check the Strenght of all the characters and sort it from highest to lowest and make a queue list, so the characters will take action according to their possition in the queue. I guess this is exactly the same as who strikes first in each battle turn...
  8. Milena

    Remove a Sprite from an array

    So I made this array and added sprites on it. var lineX = 700; this._buttonList = []; for (var i = 0; i < 30; i++) { var button = new Sprite(); button.bitmap = ImageManager.loadPicture('Item'); button.x = 100; var line =...
  9. Milena

    Meta Values in Array and Note Tags in Array

    On my old topics, some of you were able to teach me how to read the values of meta and compare arrays. But I just have recently been into it and still struggling to learn the regular expressions in Rubular and Scriptular as advised. I find meta easier to do but I discovered that I still don't...
  10. Milena

    Are sprite layers handled by arrays?

    While tinkering with Sprites, I tried to add at least three sprites, and each of them in different index (z-index in rgss), for example: this.addChildAt(milenaCircle, 1);this.addChildAt(milenaCircle2, 2);and then, since I want the third circle to be at the top most part, I made it...
  11. Milena

    Array as Parameters

    In the plugin manager, we can create a function via script via Numbers and Parameters so we can change the value of a var inside the plugin manager. But that somehow only works for single number. What code should I put so I can change array values of one variable from the plugin manager?
  12. Milena

    Gaining Items via Array instead of Integers

    As I was making a tweak on making items, I have something in mind. So basically, when you make an actor / party gain an item, you would do: $game_party.gain_item($data_items[1], 2)where 1 is the item id and 2 then amount. Now, I remember Tsukihime mentioned me about using a loop. I thought of...
  13. Milena

    More Array Functions

    I have been reading a lot about arrays lately which were mainly from Stack Overflow and Ruby docs, however I seem not to be able to produce what I wanted in a script in RGSS3. Mainly the following: 1. How can I access ANY elements of the array? Let's say I am checking an array of numbers, how...

Latest Threads

Latest Posts

Latest Profile Posts

SwordSkill wrote on TsukiAkari_Otome's profile.
You still interested in joining projects?
Maybe you could take a look at my project.
Do you think horror RM games are still a thing today? :|
Now counting one week of skies alternating between cloud, rain, and heavy winds, in the middle of summer. Sure puts a new meaning to the phrase "strange weather around here"

Forum statistics

Threads
118,609
Messages
1,117,284
Members
155,684
Latest member
RPGonme
Top