![]() |
![]() |
|||||||||||||||||||
Keep Rings and Shields between levels (KeepStatus.lua)
![]() Developer Last Online: Jun 2020
This LUA script will enable you to keep your rings and shields after finishing a level. You will automatically start the next level with whatever you had at the end of the previous level. Works in Co-Op too!
v1.0 Initial Release v1.1 Fixed compatibility with NiGHTS Special Stages, spectators, custom exits, end of round in Match/CTF, and manual map changes. v1.2 Fixed a "rings" variable not belonging to a player Fixed problem where you received extra lives after grabbing a ring when starting a level with over 100 rings Download Now
Screenshots Supporters / CoAuthors Show Your Support
|
Comments |
![]() |
#2 | |
Watch Symphogear
Developer
|
Already tested and confirmed working online and offline, so welcome to releases!
__________________
Quote:
|
|
![]() |
![]() |
#3 | |
Siced
Judge
|
This looks neat. I'll check this out whenever I get the chance.
__________________
Quote:
Avatar art done by TehRealSalt |
|
![]() |
![]() |
#4 |
AKA FuriousFox
|
Just did a quick update to make the LUA work with NiGHTS Special Stages and gametypes that have spectators. Also made it so your rings and shields carry over even when the "exiting" state doesn't happen, such as custom exits, end of round in Match/CTF, and manual map changes.
|
![]() |
![]() |
#5 |
Neighborhood Memer
|
I found that if you end a level with 100 rings, once you enter the next level it will award you with an extra life. I don't know how fixable this is but it's pretty silly.
|
![]() |
![]() |
#6 |
AKA FuriousFox
|
Probably not. I remember Sonic 3 & Knuckles having similar problems when entering the boss part of Lava Reef Act 2.
|
![]() |
![]() |
#7 |
Fangtastic
Administrator
|
Sounds like you may want to mess with "player.xtralife" - it's a counter to check how many lives have already been given through collecting 100 rings, 200 rings, etc.
EDIT: on an unrelated note, what is "rings != 0" in line 3 all about? "rings" is not the name of a standalone variable that exists in the context of your script, so it'll be seen as "nil" until given a value ...and so "rings != 0" will always be true. May as well get rid of that condition, unless of course you meant to write "player.rings" instead.
__________________
My page stuffed full of MIDI goodness! The Hitchhiker's Guide to the Robo-Hoodiverse Timeline of Sonic Robo Blast History! That's an uppercase i, not a lowercase L, for the record. Also, it's pronounced "Yes-tin". Last edited by Monster Iestyn; 02-15-2016 at 02:00 AM. |
![]() |
![]() |
#8 | |
AKA FuriousFox
|
Quote:
|
|
![]() |
Thread Tools | |
|
|