SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 07-31-2018   #1
Labyrinthia
Man, I have no idea
 
Labyrinthia's Avatar
Default Lua, reseting variables on main menu/title screen?

This seems like a pretty simple one but I'm having somewhat of a hard time.

Is there any flag or anything of the sort that I can use to check if you're in the title screen and not on an actual level/map/whatever? Long story short I need to reset some variables if you're not in a game and everything I found on the wiki was the var menuactive, which doesn't really help since it's for (as far as I've understood) any menu currently up not especifically the title screen/main menu.
Labyrinthia is offline   Reply With Quote
Old 07-31-2018   #2
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

Yeah, about that, basically all the features in SRB2's Lua right now are intended to be used in levels and/or the console. There isn't any support for modifying anything at the title screen directly ...at least, not yet, anyway. There's no support for modifying the menus either, for that matter.
__________________
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".
Monster Iestyn is offline   Reply With Quote
Old 07-31-2018   #3
Labyrinthia
Man, I have no idea
 
Labyrinthia's Avatar
Default

Quote:
Originally Posted by Monster Iestyn View Post
Yeah, about that, basically all the features in SRB2's Lua right now are intended to be used in levels and/or the console. There isn't any support for modifying anything at the title screen directly ...at least, not yet, anyway. There's no support for modifying the menus either, for that matter.
Ah, I see. In this case is it possible to use the player object to modify a var?
Well, yeah I know it is, but in something like, if a player object isn't present then it sets a var to false? I tried using player.mo prior to making the thread but it didn't work, at all.

Last edited by Labyrinthia; 07-31-2018 at 09:27 PM. Reason: Uhhh, grammar errors, basically.
Labyrinthia is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.