Joined
Apr 17, 2013
Messages
135
Reaction score
7
First Language
English
Primarily Uses
N/A
Basic Lunatic States script: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/
Its protection addon that I'm trying to use: https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/lsp-protection/

Does anyone have any clue what I'm doing wrong? None of the Lunatic States effects seem to work (not causing crashes, just doing nothing), and because of Yanfly prohibiting examples I can't see how others get it to work.

Basically in the pic below I am trying to make a state that blocks all damage above 90% of the receiver's max health (essentially preventing 1-hit KOs). It's based on the #2 function of the protection addon ("Damage Barrier). Anyone knows what I might have written wrong? Credits will be added to the in-game credits museum in my Broken Reality RPG (free-to-play): https://lord-rutsah.itch.io/broken-reality-rpg
 

Attachments

  • Capture.PNG
    Capture.PNG
    38.2 KB · Views: 4

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,937
Reaction score
14,773
First Language
English
Primarily Uses
RMVXA
This worked for me:

<react effect: damage shelter 80%>

Change 80% to your desired %.

Looking at your picture you used the wrong words, the version you did would make it that if they do over 90% damage you take 0 damage for the entire attack.

That being said, Yanfly also has a bug on the master lunatic states script that causes it to do a double parse, which has odd effects on some states. You may find it really does 81% damage instead of 90% (90% * 90%) due to the double parse. Test carefully to see.

Also you need to test in game, and not battle test. I think lunatic states does not work in battle test (FYI)
 
Joined
Apr 17, 2013
Messages
135
Reaction score
7
First Language
English
Primarily Uses
N/A
This worked for me:

<react effect: damage shelter 80%>

Change 80% to your desired %.

Looking at your picture you used the wrong words, the version you did would make it that if they do over 90% damage you take 0 damage for the entire attack.

That being said, Yanfly also has a bug on the master lunatic states script that causes it to do a double parse, which has odd effects on some states. You may find it really does 81% damage instead of 90% (90% * 90%) due to the double parse. Test carefully to see.

Also you need to test in game, and not battle test. I think lunatic states does not work in battle test (FYI)
I did intend it to completely nullify attacks. So otherwise my wording is correct?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,937
Reaction score
14,773
First Language
English
Primarily Uses
RMVXA
No idea then, as I never used that version, as it drops it all the way to 0 if it is that much of your HP. I used the other one that is where it caps it at x% instead.
 

Latest Threads

Latest Posts

Latest Profile Posts

Still alive! Totally did not finish in time for the Jam (boy that's late) but tl;dr of the last half a year is Work term -> Covid Lockdown -> Sick... again -> Full time Employment. Game stuff has been on hiatus but got a new graphics tablet so hopefully updates again soon. =D
Going on hiatus. Won't be back until mid October.:LZSoops:
Just read the English lyrics for Despacito. Ramen aint innocent no more! :kaodes:
Well today was blown away with nothing to show for it. I made a new character to my game who I was going to have a protection mechanic where he protects my main character randomly unless it's a critical, and no matter what, to check if an attack received will be critical, means checking the apply method. This means rewriting the entire method and I refused to do that.

Forum statistics

Threads
115,318
Messages
1,088,890
Members
149,962
Latest member
Luizg156
Top