NPC Random Character Swap Plugin for RMMV

aitorllj93

Warper
Member
Joined
Jan 3, 2016
Messages
3
Reaction score
2
First Language
Spanish
Hi,
I'm looking for a plugin that allows me to randomly change an Event character image via Event Comment (something like Yanfly's Swap Enemy but with events) in order to get random people on my maps. I'm willing to pay if needed

The comment could be something like this:
<SwapCharacter: $random_character_1, $random_character_2, $random_character_3>

Thanks for your time
 
Last edited:

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
490
Reaction score
190
First Language
thai
Primarily Uses
RMMV
I can suggest some eventing + yanfly morphing event plugin solution
just make autorun page
and make a condition branch with random number
to morph it to event you list
if you know more about script may be do it by array is easier
 

aitorllj93

Warper
Member
Joined
Jan 3, 2016
Messages
3
Reaction score
2
First Language
Spanish
Thanks, that worked!

I paste the snippet if someone needs too


JavaScript:
var mapId = 18;
var npcTotal = 10;
var preserved = false;

var targetId = this.eventId();
var eventId = Math.floor(Math.random() * npcTotal);
Yanfly.MorphEvent(targetId, mapId, eventId, preserved);
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Please do not buy games from g2a.com. The sellers have total power over you. The website has many scam sellers. It looks cheap, but the key code didn't work.
A while back I was having fun making my own custom tiles, then I hit carpet... why is it so difficult!? Lol.
Weekend is finally here... what would you like to see (?):
1) Pokemon into zelda minish-cap style
or
2) Pokemon into zelda gbc style
or
3) Zelda into pokemon style

#= Choose ===============#
||__[ Full mockup ]_[ Charset ]__||
#=======================#
I know someday I'll start working on this...

I'm so happy that I got Steam achievements to work in my game, thanks in large part to the posts by other RPG Maker devs on this issue!

Forum statistics

Threads
97,943
Messages
948,058
Members
129,191
Latest member
Homerx_666
Top