RPG Maker Forums Archive
Search Settings
Home › Game Development Engines › Legacy Engine Support › RPG Maker MV Support

Making a skill cause a random state

RPG Maker MV Support
Z Zakarijazh
Jan 21, 2025 08:57
How would I go about creating a skill that causes a random state?

Most of my skills are in order but it would be states 1-3 and 6-8.
R rpgLord69
Jan 21, 2025 09:13
if (Math.randomInt(2)) {
target.addState(Math.randomInt(3)+1);
} else {
target.addState(Math.randomInt(3)+6);
}

Original thread: https://forums.rpgmakerweb.com/threads/making-a-skill-cause-a-random-state.174852/

This is an unofficial, read-only archive preserved for the community. Original site: https://forums.rpgmakerweb.com

Want your posts removed? See removal requests or email [email protected]. · Preserved with Forum Ark · Privacy · About