Making a skill with random effects

cthulhusquid

Veteran
Veteran
Joined
Aug 19, 2013
Messages
341
Reaction score
294
First Language
English
Primarily Uses
RMVXA
So I decided to make the black effect change the enemy into a less harmful creature. Is there a way I could get the skill to change the enemy, but be the target I chose instead of the indexed number?
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
So I decided to make the black effect change the enemy into a less harmful creature. Is there a way I could get the skill to change the enemy, but be the target I chose instead of the indexed number?
I thought we already did that?



If you are referring to the state that is going to be added, that will use the scope of the skill.

Currently that would be the enemy that you select...

I'm not so sure I understand what you are asking...
 
Last edited by a moderator:

cthulhusquid

Veteran
Veteran
Joined
Aug 19, 2013
Messages
341
Reaction score
294
First Language
English
Primarily Uses
RMVXA
We did already do that, but this is not the force action. It is Enemy Transform. Enemy Transform doesn't have a "Last Target" option.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
We did already do that, but this is not the force action. It is Enemy Transform. Enemy Transform doesn't have a "Last Target" option.
lol, ahh I see, so it doesn't... well I just made a simple script for you that will allow you to Transform the last target. ;)

Demo: Click here to download

As always please let me know how it works for ya. :)
 
Last edited by a moderator:

cthulhusquid

Veteran
Veteran
Joined
Aug 19, 2013
Messages
341
Reaction score
294
First Language
English
Primarily Uses
RMVXA
I copied over the script, now how would I utilize it?
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
I copied over the script, now how would I utilize it?
Check the demo. Look at the common event that is used by the skill. ;)

In a script box use "ct_enemy_transform(-1, <new_enemy_id>)" with no quotes & replace <new_enemy_id> with whatever the enemy id is you want it to transform into. :)

I did put a comment by the script call in the common event. Saying basically the same thing. :p
 
Last edited by a moderator:

cthulhusquid

Veteran
Veteran
Joined
Aug 19, 2013
Messages
341
Reaction score
294
First Language
English
Primarily Uses
RMVXA
I changed the common event script to ct_enemy_transform(-1, Harmless Slime) for example, and it gives me an error. Here it is: Script 'Game_Interpreter' line 1411: SyntaxError occured. unexpected tCONSTANT, expecting keyword_do or '{' or '(' ct_enemy_transform(-1, Harmless Slime).
 
Last edited by a moderator:

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
I changed the common event script to ct_enemy_transform(-1, Harmless Slime) for example, and it gives me an error. Here it is: Script 'Game_Interpreter' line 1411: SyntaxError occured. unexpected tCONSTANT, expecting keyword_do or '{' or '(' ct_enemy_transform(-1, Harmless Slime).
Lol, the ID of the enemy, not the name. ;) Like 1 is Slime, 8 is Scorpion.
 
Last edited by a moderator:

Zurea

Alchemist in Training
Veteran
Joined
Sep 30, 2014
Messages
57
Reaction score
11
First Language
English
Primarily Uses
This is a neat idea, and I'm curious if this can be done on a enemy to do states instead. I tried doing it the traditional way and the ability is far too over powered. Is it possible to implement state changes on the target foe with this method without specifying the foe? (The skill hits 1 random enemy can deal 0 - 240 damage and can implement 1 random state or should anyway.) Just curious, I've been playing with it so far and it doesn't seem to set up correctly, what's the branch I'd use to get the desired results?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top