Need help with a skip turn script.

Status
Not open for further replies.

MauriceRaptor

Warper
Member
Joined
Mar 28, 2020
Messages
3
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Hi, I'm making a game, and I'm having a bug.

iI use a script(Fomra0153-Ticking HP) that works like this: When a character looses HP it ticks until it's dead. But if the player dies while in the actor command menu you're still able to make a move, and snce you're dead it crashes.
I had the idea of miking a second script that checks if an actor is dead and it's his turn and if it is, it skips it automatically so you won't be able to choose an action if dead.

This is the script that causes the issue:





And this is my athemt on doing the second script:


==================================================================
class Scene_Battle < Scene_Base
if ($gameActors.actor(1).isStateAffected(1)) and if BattleManager.actor.id == 1 then
Scene_Battler.@actor_command_window.close
end

if ($gameActors.actor(2).isStateAffected(1)) and if BattleManager.actor.id == 2 then
Scene_Battler.@actor_command_window.close
end

if ($gameActors.actor(3).isStateAffected(1)) and if BattleManager.actor.id == 3 then
Scene_Battler.@actor_command_window.close
end

if ($gameActors.actor(4).isStateAffected(1)) and if BattleManager.actor.id == 4 then
Scene_Battler.@actor_command_window.close
end


if ($gameActors.actor(5).isStateAffected(1)) and if BattleManager.actor.id == 5 then
Scene_Battler.@actor_command_window.close
end


if ($gameActors.actor(6).isStateAffected(1)) and if BattleManager.actor.id == 6 then
Scene_Battler.@actor_command_window.close
end

if ($gameActors.actor(7).isStateAffected(1)) and if BattleManager.actor.id == 7 then
Scene_Battler.@actor_command_window.close
end

if ($gameActors.actor(8).isStateAffected(1)) and if BattleManager.actor.id == 8 then
Scene_Battler.@actor_command_window.close
end
end
===========================================================

Also, I've recorded the issue, so you have a better idea:


If you have an idea on how to fix this in another way, please tell me. It's the only bug in my game and even if it's still playable (if you cancel the command imput with X it prevents you from opening that menu again until revitalized) it's an annoyance. Thanks in advance, and have a nice day.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Please edit your post to remove the script and instead give a link to the web page where you got it. If for some reason that is not possible, at least put it inside spoilers. No one wants to have to scroll that much in order to see the latest post.
[MOVE]RGSSx Script Support[/MOVE]
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,831
Reaction score
5,221
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top