Icons Randomly Chosen

sammc

Villager
Member
Joined
Apr 30, 2013
Messages
28
Reaction score
2
Primarily Uses
Hi,
I have a hiring pop up in my game that I would like to have different icons to be chosen for randomly. The images would be little faces.
1. Random Icon is chosen of a set of 20.
2. The number of the icon is stored in an array and referenced later for the hired agent.

The problem I'm facing using Yanfly's EvalText and \i[] is that when I put in code like this:
\i\evalText<<$gameVariable.value(200)[Math.random]>> the \i portion of the code just shows up as blank. I tried another method and evalText by Yanfly just doesn't work this way.

Is there some way to display an icon based on some code, so the icons shown are random?
 

Attachments

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
120
Reaction score
29
try this script call
$gameVariables.setValue(ID, Math.floor(Math.random() * maxRange));
then $gameVariable.value(ID)
 

sammc

Villager
Member
Joined
Apr 30, 2013
Messages
28
Reaction score
2
Primarily Uses
Hm, that doesn't answer the question; the icons themselves won't appear with that code call.
 

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

Latest Threads

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,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top