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,297
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,803
Reaction score
5,212
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


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,635
Messages
1,015,164
Members
137,304
Latest member
KenSoulslayer
Top