Graphic randomizer selection.

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Hi guys, I'm working hard on a civillian randomizer- I am using Galv's spawn event script but I'm under one problem.


Basically I have the event spawning part working- but I want the event spawned with a randomzied graphic- the conventional way of doing this is a tedious variable handout and manualling selecting the graphic the event will choose- I am intending to use quite alot of graphics and I was wondering if there is a plugin that can choose at random 1 out of 8 characters from a sheet- this hopefully saving me a bit of space and to manage the command easier without having to go through so many variables. Does such a thing seem possible?
 
Joined
Aug 16, 2015
Messages
102
Reaction score
2
First Language
English
Primarily Uses
RMVXA
Holy crap yes! I'm so sorry that I can't help you. I just loved your profile pic. I'm overjoyed right now that I'm not the only one who still knows what Arcanum is.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
What in gods name! I-i mean, better luck next time!


I'm hoping this could be made possible because I noticed changing graphics inside the move event command the graphic you select is numbered.
 
Joined
Aug 16, 2015
Messages
102
Reaction score
2
First Language
English
Primarily Uses
RMVXA
thats the way to show those bast- i mean, good hit sir.


Having to make the variable really isn't too bad especially 1-8, unless you want multiple. Me and my brother made a randomized chest with 1-20 and it only took around 10 minutes. 
 
Last edited by a moderator:

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
I've also played Arcanum and I'd like to make a game similar to it and other Infinity Engine-esque games. Anyway, I'm working on this plugin right now.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Arcanum truly an underated game, my VX Ace project was closely resembling it in terms of character sheets and skills.


But at this time my current project is heading a bit towards a Shadowrun/GTA/Arcanum Hyrbrid.


As for the randomizer- having it randomly made by commands would be simple enough- but I am talking in the masses, I have at the moment over 50 odd graphics to generate and on top of that I have several different races to come into play aswell- this is intended to avoid the typical game where you see the game guy on the map duplicated next to each other.


I'm truly greatful for helping putting your own time into making a plugin for this DreamX
 
Joined
Aug 16, 2015
Messages
102
Reaction score
2
First Language
English
Primarily Uses
RMVXA
I've always dreamed of making a game like Arcanum, the only problem is that I lack the knowledge of how to do it. What did they make the game with. What did they use to do the art. As soon as I found that stuff out, I'm going to attempt an Arcanum inspired game. Of course I'd need to make it on a different engine though.
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
IAt this point I need each event spawned to do a random hand out on what graphics it will be appointed with. If I have a moveroute option with a graphic change done in common event setting for 'this event' it changes the graphic on the spawn event creator instead of spawns themselves.
I already have the randomization when spawning working.


But please clarify on the bolded part, I'm not sure what you mean.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Sorry my mistake.


Basically I have the spawn working fine, what I need to work is having the spawned event go through a series of conditional branches to determine the events graphic i.e race, and which graphic out of the 8 per sheet. This is intended to simulate city pedestrians looking different every time you enter the map and on how many are spawned on regions.


The problem firstly is what my link directs to which is the plugin I requested earlier today to handout an easier graphics random handout rather than individually selecting the graphic and creating large command pages that could end up being cluttered.


The other issue is that the event that is spawned does not seem to want to work with conditional branches determining it's graphic handout before spawning.


This makes sense to me, but hopefully you understand what I am talking about :)
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
Okay so is the race random then?
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Yes, this is because in my project I have so far 4 races, and multiple sheets of those races with different outfits.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
@Industrial Gamer Your posts are tending towards the spammy.  Please stay on topic, and reply directly to the query, not have a random conversation about another game.


Thank you.
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
Alright here you go. Parameters should be clear enough.


Let's say that you entered Humans Elves Orcs for the parameter races.


And then you entered 3 for the sheet max parameter.


You need images Humans1.png, Humans2.png, Humans3.png, Elves1.png, Elves2.png, Elves3.png, Orcs1.png, Orcs2.png, and Orcs3.png in the character folder.


Every event that has


<RandomizeCharacter>


in the notebox (see the top when you edit an event) will have its image randomized when spawned.


https://raw.githubusercontent.com/DreamXRMMV/Rpg-Maker-MV/master/DreamX_RandomizeCharacterForSkurge.js


( right click and save as .js file, do not change plugin filename)
 
Last edited by a moderator:

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
That is truly fantastic, so simply put the event will spawn with the file cap designated in the plugin and will choose 1 out of the 8 frames inside. Brilliant! Works so wonderfully. The only problem remains is the conflict with Terrax lighting :p


Just a side question also, if for some reason I decided that I want a particular map to spawn a race more than another in a certain spot. for example a ghetto of orcs- you'll find more orcs there than you would humans?
 
Last edited by a moderator:

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
That is truly fantastic, so simply put the event will spawn with the file cap designated in the plugin and will choose 1 out of the 8 frames inside. Brilliant! Works so wonderfully. The only problem remains is the conflict with Terrax lighting :p


Just a side question also, if for some reason I decided that I want a particular map to spawn a race more than another in a certain spot. for example a ghetto of orcs- you'll find more orcs there than you would humans?
The conflict with the Terrax lighting is probably Galv's event spawner if you're using that.


I updated the plugin (same link) so you can preselect the race with this notetag


<RCRace: x>


with x being the race, for example for the Orcs


<RCRace: Orcs>


That way you make sure an event will spawn as an orc.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Wonderful work, thank you so much for helping me with this.


OK so I thought the problem vanished with the lighting setting, because now for some reason the problem is random. Sometimes it brings up ' TypeError Cannot read property 'note' of null


no matter what I do with the plugins or what order they are in it either decides to work or not.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top