Hello Everyone, how are you doing? I'm developing a game for my birthday, where it will be used a as game show to quiz people on video game trivia and video game challenges. Most of the fundamental pieces of codes are working, however one is incomplete, and that's the random number generator...
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...
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.]...
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...
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...
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...
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 =...
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...
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 =...
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...
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...
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?
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.