How do I make a spell that does random elemental damage?

Guyver07

Warper
Member
Joined
Oct 18, 2021
Messages
2
Reaction score
1
First Language
English
Primarily Uses
RMMZ
I'm trying to make a spell that does low power random elemental damage. Do i need a plugin or is there a way to randomize the damage type in MZ?
 

Aoi Ninami

Veteran
Veteran
Joined
Sep 22, 2015
Messages
466
Reaction score
617
First Language
English
Primarily Uses
RMVXA
Create four (or however many) skills that are identical except for the element, and have the enemy choose randomly between them.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
3,178
Reaction score
1,878
First Language
English
Primarily Uses
RMMV
Create four (or however many) skills that are identical except for the element, and have the enemy choose randomly between them.
That's presuming this is for use by an enemy, not the player - the OP didn't say.

I'm trying to make a spell that does low power random elemental damage.
I Googled it and came across this thread which has a kind of janky but functional solution:
"Make multiple instances of your skill, all with the same name and the same stats, but different elements. Create a Common Event that is triggered by each of these spells. Set this Common Event (that is activated every time after any of the variations are used) to have the character forget all of the variations of the skill. Then have it choose one of the variations at random that the character learns. "

What that leaves out is that in order for the common event to know who is forgetting and learning the skill, you'll need to put a temporary state on the actor when they use the skill - have the common event look for the player in the party with that state, do the stuff it does above, then remove the state again.

So this is similar to what Aoi proposed, but with extra work to have it work for players.
 

Guyver07

Warper
Member
Joined
Oct 18, 2021
Messages
2
Reaction score
1
First Language
English
Primarily Uses
RMMZ
I meant a player spell (sorry for not specifying). It sounds like that will needlessly complicate it and might not be worth the effort. It's good to know though. The enemy skill might be useful later on though. Thanks for pointing me in the right direction.
 

Latest Threads

Latest Posts

Latest Profile Posts

I have been enjoying a game on my iPhone, called Wonderbox. It is just a little game where you create adventures, share them, whilst also being able to play others. It's a bit zelda-esque. I have started some youtube for those, gonna start with RPG maker things soon as well. So if you wish to see, do check it out :)
SF_People3_3 added!
index.php

ScreenShot_1_3_2022_1_32_12.png
I feel QSprite for MV is underrated. I basically am able to use my chibi sideview battlers I drew on the maps and have all the motions available. this'll help a lot with cutscenes.
I've figured out how to reasonably tall-ify chibi sprites on my editor. I like that making tall sprites gives me control on expressing how tall characters seem on the field relative to each other as well as better differentiate adult sprites from child sprites.
doing some wacky experimental stuff in MV right now :kaoluv: I cannot wait to drop what I've been working on

Forum statistics

Threads
118,562
Messages
1,116,967
Members
155,607
Latest member
Masap
Top