Klokinator Posted August 17, 2013 Share Posted August 17, 2013 So I'm pretty sure that single number variables are doable in romhacking with simple eventing ("Simple" meaning not-ASM), but I'm not sure how flexible they are. How does one set a variable? Can the variable be a negative number? Can you set a maximum and minimum for that variable, ie: -10 to +10? Can that variable be used for IF events, like saying "IF variable is -7, recruit this unit"? Can that variable be a range of numbers? "IF variable is -3 to +2, recruit this unit"? I'm assuming most of these are doable but I'd like to get confirmation and maybe a short explanation of how to event them. Quote Link to comment Share on other sites More sharing options...
CT075 Posted August 17, 2013 Share Posted August 17, 2013 i wish events allowed you to use variables (i'm about 75% convinced that fe8 events do use actual variables but fe7 truly does not) Quote Link to comment Share on other sites More sharing options...
Klokinator Posted August 17, 2013 Author Share Posted August 17, 2013 I'm asking because I wanted to make a simple "Morality System" but if they aren't even slightly doable I'll have to think of another workaround :/ Quote Link to comment Share on other sites More sharing options...
CT075 Posted August 17, 2013 Share Posted August 17, 2013 if you could find some random address of free memory it would be very simple to just write some asm to add or subtract from the value stored there it probably wouldn't survive a hard reset [ie turning the game off and back on] though Quote Link to comment Share on other sites More sharing options...
Vennobennu Posted August 17, 2013 Share Posted August 17, 2013 FE8 definitely uses variables with its memory slot system (ex. giving items and money, changing AI), but I don't know if any of the memory slots actually persist between chapters or through a hard reset.You might be able to do some kerjiggery with permanent event IDs; perhaps you could write to the byte used by one of them and just never invoke that given ID for anything else, but again, I don't know how the game would react to fiddling around with them.(I may or may not be taking a total shot in the dark here!) Quote Link to comment Share on other sites More sharing options...
CT075 Posted August 17, 2013 Share Posted August 17, 2013 event id's are boolean i wrote up a system to do binary arithmetic with them but it's long and i never tested it so idk if it even works Quote Link to comment Share on other sites More sharing options...
Vennobennu Posted August 17, 2013 Share Posted August 17, 2013 Oh, that's too bad then. Is there anything in the save file data that could be appropriated? Tactician birthday, maybe? Quote Link to comment Share on other sites More sharing options...
CT075 Posted August 17, 2013 Share Posted August 17, 2013 (edited) i think a battle mastery system i made actually wrote the number into merlinus's skill stat but that's a really hacky solution Edited August 17, 2013 by CT075 Quote Link to comment Share on other sites More sharing options...
Klokinator Posted August 17, 2013 Author Share Posted August 17, 2013 Hmm, now that you mention it, Event ID's may have been the old system I used before. All I really need is something with a number I can change via events and use for IF commands to see if something is doable or not. Like if I set this theoretical number to 3 and list that "IF this number is 3 then you can do this". Also, if I can't make this morality system use something resembling a variable, then I can just use classes by saying "If player unit 01 is a mage, this happens, but if that character is a shaman, this happens" or etc. Quote Link to comment Share on other sites More sharing options...
CT075 Posted August 18, 2013 Share Posted August 18, 2013 Hmm, now that you mention it, Event ID's may have been the old system I used before. All I really need is something with a number I can change via events and use for IF commands to see if something is doable or not. Like if I set this theoretical number to 3 and list that "IF this number is 3 then you can do this".doesn't exist in fe7 without asm Also, if I can't make this morality system use something resembling a variable, then I can just use classes by saying "If player unit 01 is a mage, this happens, but if that character is a shaman, this happens" or etc.no you can't Quote Link to comment Share on other sites More sharing options...
Crimson Red Posted August 18, 2013 Share Posted August 18, 2013 it probably wouldn't survive a hard reset [ie turning the game off and back on] though there's random bits of free space (pun not intended... at first) here and there such as the tactician's name/gender/birthmonth bits and potentially unused bits in character data, of course if you actually use those that's an issue but they're not too hard to avoid (read: get rid of the tactician creation and you have several bytes of free space in the memory... though it's still not any grand amount) Quote Link to comment Share on other sites More sharing options...
CT075 Posted August 18, 2013 Share Posted August 18, 2013 how the hell is that a pun? O_o Quote Link to comment Share on other sites More sharing options...
Primefusion Posted August 18, 2013 Share Posted August 18, 2013 how the hell is that a pun? O_o there's random bits of free space Bytes are bits yada yada. Quote Link to comment Share on other sites More sharing options...
Crimson Red Posted August 18, 2013 Share Posted August 18, 2013 never said it was a good one Quote Link to comment Share on other sites More sharing options...
CT075 Posted August 18, 2013 Share Posted August 18, 2013 oh ;/ ;/ ;/ ;/ ;/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.