- 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?
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
-
9.2 KB Views: 12

