Sopo201

Villager
Member
Joined
Jul 5, 2013
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMVXA
In my game, during the final boss, one of the party members falls into a perma-death state, so he can't be healed or anything.

So, is there a way I could have a message display saying something like "Nothing happened!" when (at the top left, not in a text box) the Raise skill is used?

Thanks!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,086
Reaction score
15,501
First Language
English
Primarily Uses
RMMV
I THINK this would require a script mod, but I really am not familiar enough with the battle system to be sure. So I'll leave it here for the time being, in case anyone else can come up with a non-scripting way to do it.
 

Sopo201

Villager
Member
Joined
Jul 5, 2013
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMVXA
I THINK this would require a script mod, but I really am not familiar enough with the battle system to be sure. So I'll leave it here for the time being, in case anyone else can come up with a non-scripting way to do it.
That's fine, it can be in a script. As long as it works, I'll be happy!  :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,268
Reaction score
8,722
First Language
German
Primarily Uses
RMMV
It depends on what exactly you want to happen to that actor when the state is applied.

If that state forces HP=0 then you'll need a script to override the automatics that happens when HP drops to zero.

However, if you make a new state "permadeath" that is different from the regular death and that keeps the HP unchanged above zero (just makes the actor inactive, damage rates and TGR set to zero and prevent further damage), then the actor doesn't count as dead for the engine and the raise death skill can't be used on it.

This would not give you the special message you want, but it would have the same functionaity (you have to make sure that there is no "recover all" skill that removes all regular states however).
 

Sopo201

Villager
Member
Joined
Jul 5, 2013
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMVXA
It depends on what exactly you want to happen to that actor when the state is applied.

If that state forces HP=0 then you'll need a script to override the automatics that happens when HP drops to zero.

However, if you make a new state "permadeath" that is different from the regular death and that keeps the HP unchanged above zero (just makes the actor inactive, damage rates and TGR set to zero and prevent further damage), then the actor doesn't count as dead for the engine and the raise death skill can't be used on it.

This would not give you the special message you want, but it would have the same functionaity (you have to make sure that there is no "recover all" skill that removes all regular states however).
I already have the permadeath state all set up and working. Using Recover shows the statement "<Actor 1> took no damage!", and Raise shows no message whatsoever.(Both do not heal the actor, which I want) I would prefer if the game said something more along the lines of "Nothing happened!" So basically, the state functions as it should, but I'm just looking to change the message for aesthetic purposes.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,268
Reaction score
8,722
First Language
German
Primarily Uses
RMMV
Then you need a script, because that would require different skill messages depending on target conditions - something that the engine doesn't provide

I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.
 

Sopo201

Villager
Member
Joined
Jul 5, 2013
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Bump

Does anyone have a script for this? I still really need it. Thanks :)
 

Lecode

(─‿‿─)
Veteran
Joined
Dec 18, 2013
Messages
490
Reaction score
668
First Language
French
Primarily Uses
N/A
Hello.

Try that:

Code:
class Window_BattleLog < Window_Selectable    NothingHappened_States = [ 29 ] # <- Insert states' id here    alias lecode_nothap_dar display_action_results  def display_action_results(target, item)    if target.result.used && trigger_nothap?(target)      last_line_number = line_number      display_nothing_happened      wait if line_number > last_line_number      back_to(last_line_number)      return    end    lecode_nothap_dar(target, item)  end    def display_nothing_happened    text = "Nothing happened !"    add_text(text)    wait  end    def trigger_nothap?(target)    NothingHappened_States.any? { |id| target.state?(id) }  end  end
 

Sopo201

Villager
Member
Joined
Jul 5, 2013
Messages
21
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Hello.

Try that:

class Window_BattleLog < Window_Selectable NothingHappened_States = [ 29 ] # <- Insert states' id here alias lecode_nothap_dar display_action_results def display_action_results(target, item) if target.result.used && trigger_nothap?(target) last_line_number = line_number display_nothing_happened wait if line_number > last_line_number back_to(last_line_number) return end lecode_nothap_dar(target, item) end def display_nothing_happened text = "Nothing happened !" add_text(text) wait end def trigger_nothap?(target) NothingHappened_States.any? { |id| target.state?(id) } end end
Awesome, this works perfectly!
 

Latest Threads

Latest Profile Posts

I'm listening to iiluminaughtii talking about the secrets behind shady businesses and scams. Meanwhile I'm writing a fanfic about Sephiroth from FF7, one specifically for my stepmom. I'll get to give it to her, too, because my boss said I could take the holidays off! Dec. 22-27 I will be in Orlando, and maybe Fort Myers too, visiting my dad and stepmom!
Of course, I bought a handful of games on the Steam Black Friday sale. Will I try them? Will I complete any? Who knows...
I don't really have any neat updates today about how I screwed up programming... But if you want to observe the intensenes of me programming, then you can check out my stream :)
New Weapons.gif
No more spam from me today, I promise! Just wanted to upload this, people have been giving me feedback that my weapon sprites (which were RTP) clashed badly with my battlers for ages, so today I finally took the plunge and updated them! Really happy with how they came out :D :D
So Facebook fraudulently took money from me. They even went through my PayPal accounts to find a card that had the money on it. Thinking about deleting my Facebook account because this doesn't happen on twitter, not even close.

Forum statistics

Threads
117,002
Messages
1,103,720
Members
152,896
Latest member
LuanGarcia23
Top