MarkyJoe1990 Posted December 21, 2012 Share Posted December 21, 2012 (edited) Heeeeeey everyone. So I decided to make an ASM conditional code that checks if all of your currently fielded units are dead. It's great for people who would rather their game overs be caused by not having any units than a specific main character dude dying. This is for FE7. Download Basically just paste this dmp into an area of your rom and then you can call the condition in your events with IFAF [Conditional ID] [Offset plus 1]. CheckAllCurrentHP: .thumb .org 0x00 mov r1, #0x00 @Sets cycler to 0x00 mov r2, #0x00 @False CheckCharacterID: ldr r0, =0x0202BD50 @Loads start of character ID pointer offset ldr r0, [r0, r1] @Looks for a pointer cmp r0, #0x00 @Checks to see if a pointer exists (Not Zero) beq EndCode @If there isn't a pointer, meaning no character, then end code CheckIfDeployed: ldr r0, =0x0202BD60 @r0=Offset of current X position ldrb r0, [r0,r1] @r0=value of current X Position plus slot cmp r0, #0xFF @Check if their position is 0xFF beq CycleNext @If equal, Skip CheckCurrentHP: ldr r0, =0x0202BD63 @r0=Offset of current HP ldrb r0, [r0,r1] @r0=value of current HP plus slot cmp r0, #0x00 @Check if current HP is zero bne EndCodeFalse @If not, set to false and end code mov r2, #0x01 @If so, set true and continue to next unit CycleNext: add r1, #0x48 @Allows the checking of next slot b CheckCharacterID EndCodeFalse: mov r0, #0x00 bx lr EndCode: mov r0, r2 bx lr Edited December 27, 2012 by MarkyJoe1990 Quote Link to comment Share on other sites More sharing options...
CT075 Posted December 21, 2012 Share Posted December 21, 2012 there are easier (and more efficient) ways to do it but good job nonetheless Quote Link to comment Share on other sites More sharing options...
Chocolate Kitty Posted December 21, 2012 Share Posted December 21, 2012 (edited) All characters dead seems a bit extreme, would there be an alternative specific amount of characters dead or something? Edited December 21, 2012 by Kitty of Time Quote Link to comment Share on other sites More sharing options...
MarkyJoe1990 Posted December 21, 2012 Author Share Posted December 21, 2012 All characters dead seems a bit extreme. Perhaps I should specify. It's for all fielded units, not your entire roster of units. Quote Link to comment Share on other sites More sharing options...
Chocolate Kitty Posted December 21, 2012 Share Posted December 21, 2012 No, I assumed that already. I meant something like, say, 80% of your units are dead, or 60%. 100% sort of includes the main character... Quote Link to comment Share on other sites More sharing options...
MarkyJoe1990 Posted December 21, 2012 Author Share Posted December 21, 2012 (edited) No, I assumed that already. I meant something like, say, 80% of your units are dead, or 60%. 100% sort of includes the main character... I don't see why it's so extreme. FE8 did it with it's skirmishes, the Tower of Valni, and Lagdou ruins. You can go to each of those without your main characters and get a game over if you lose all your fielded units. It's also helpful if you don't want your main character to cause a game over, but rather when all your fielded units die. It also allows you to not have to field your main character just so the game doesn't glitch if you DO lose all your fielded units. Frankly, I think that getting a game over by losing a percentage of your units seems far more arbitrary. You still have units to fight with in that scenerio, so there's no reason to consider it a game over. Edited December 21, 2012 by MarkyJoe1990 Quote Link to comment Share on other sites More sharing options...
Jubby Posted December 21, 2012 Share Posted December 21, 2012 i don't really see there being a whole lot of games where they just keep going if your main character dies... Quote Link to comment Share on other sites More sharing options...
MarkyJoe1990 Posted December 21, 2012 Author Share Posted December 21, 2012 i don't really see there being a whole lot of games where they just keep going if your main character dies... The Disgaea series. Quote Link to comment Share on other sites More sharing options...
Jubby Posted December 21, 2012 Share Posted December 21, 2012 (edited) i don't really see there being a whole lot of games where they just keep going if your main character dies... especially using FE mechanics. Edited December 21, 2012 by Jubby Quote Link to comment Share on other sites More sharing options...
MarkyJoe1990 Posted December 21, 2012 Author Share Posted December 21, 2012 (edited) Alright, what about most RPGs? Final Fantasy for example. Even if your main character dies, the game doesn't end unless you lose all your fielded party members. Normally in FE, if you edit the death quotes so that the main character's death causes no game over, the game will be on an endless loop if you lose the rest of your units. This conditional code fixes that problem. Edited December 21, 2012 by MarkyJoe1990 Quote Link to comment Share on other sites More sharing options...
Thor Odinson Posted December 21, 2012 Share Posted December 21, 2012 (edited) You don't really die in final fantasy you just pass out Plus you have a bajillion phoenix downs and shit that doesn't exist in FE When you actually die in FF (aka Aeris) you can't use a phoenix down Edited December 21, 2012 by Zhuge Liang Quote Link to comment Share on other sites More sharing options...
MarkyJoe1990 Posted December 21, 2012 Author Share Posted December 21, 2012 (edited) You don't really die in final fantasyyou just pass out Plus you have a bajillion phoenix downs and shit that doesn't exist in FE What if someone wanted to make those things exist in FE? There's no rule saying FE hacks must all have permadeath and a lord that causes a game over if s/he dies, and some people, like myself, prefer the lack of permadeath. Edited December 21, 2012 by MarkyJoe1990 Quote Link to comment Share on other sites More sharing options...
Thor Odinson Posted December 21, 2012 Share Posted December 21, 2012 I don't care what you do but using FF as an example is terrible Quote Link to comment Share on other sites More sharing options...
Chocolate Kitty Posted December 21, 2012 Share Posted December 21, 2012 I don't see why it's so extreme. FE8 did it with it's skirmishes, the Tower of Valni, and Lagdou ruins. You can go to each of those without your main characters and get a game over if you lose all your fielded units. It's also helpful if you don't want your main character to cause a game over, but rather when all your fielded units die. It also allows you to not have to field your main character just so the game doesn't glitch if you DO lose all your fielded units. Frankly, I think that getting a game over by losing a percentage of your units seems far more arbitrary. You still have units to fight with in that scenerio, so there's no reason to consider it a game over. "Lord Eliwood, we've lost everyone except renault and karel, should we retreat?" "Nah, keep going Marcus, it's not like Nergal's army of morphs would be able to kill three people, we've got this in the bag" If you lose all but one unit, is that really worth continuing? Quote Link to comment Share on other sites More sharing options...
Fateborn Posted December 21, 2012 Share Posted December 21, 2012 (edited) This certainly will be useful for a certain thing... Defend or Infinite Skirmish. Where if an unit dies, he/she falls back, until the last one is dead, causing a game over. (Might need some edit I think?) Thank for this! Edited December 21, 2012 by Ubel Engel Quote Link to comment Share on other sites More sharing options...
Crimson Red Posted December 21, 2012 Share Posted December 21, 2012 How does this code check to see if the character is fielded? I don't see that part of the code :( and as Cam said there are better ways to do it but if it works there's nothing to really complain about it but I think I'll still have to make a code that checks for a certain # of characters at this rate Quote Link to comment Share on other sites More sharing options...
CT075 Posted December 21, 2012 Share Posted December 21, 2012 there's a blank character slot before the unfielded unit data begins in memory iirc Quote Link to comment Share on other sites More sharing options...
SgtSmilies Posted December 21, 2012 Share Posted December 21, 2012 "Lord Eliwood, we've lost everyone except you, Lyn, and Hector, should we retreat?" "Nah, keep going Marcus, it's not like Nergal's army of morphs would be able to kill three people, we've got this in the bag" This happens. Quote Link to comment Share on other sites More sharing options...
47948201 Posted December 22, 2012 Share Posted December 22, 2012 "Lord Eliwood, we've lost everyone except renault and karel, should we retreat?" "Nah, keep going Marcus, it's not like Nergal's army of morphs would be able to kill three people, we've got this in the bag" If you lose all but one unit, is that really worth continuing? "Lord Eliwood, we've lost everyone except Renault and Karel, should we retreat?""Of course not, you dolt! There's only one enemy left on the map, and he's at half health!" Quote Link to comment Share on other sites More sharing options...
Chocolate Kitty Posted December 22, 2012 Share Posted December 22, 2012 (edited) "Lord Eliwood, we've lost everyone except Renault and Karel, should we retreat?" "Of course not, you dolt! There's only one enemy left on the map, and he's at half health!" If you lose all but one unit, is that really worth continuing? So sorry, three units. Edited December 22, 2012 by Kitty of Time Quote Link to comment Share on other sites More sharing options...
MarkyJoe1990 Posted December 22, 2012 Author Share Posted December 22, 2012 (edited) I had a feeling this thread would be loaded with more posts when I got back from work. Anyways, after calming down and reflecting on the things I said, I feel that I got a too defensive when the usefulness of this code was questioned, and for that, I sincerely apologize. Criticism should be welcomed with open... eyes? ears? Eh. You get the idea. That said, I understand that this kind of thing isn't going to appeal to everybody, and I've no intention of changing that. This hack was made for my own Fire Emblem hack, Fire Mumblem. I felt the code could be useful to others who similarly prefer this kind of game over condition over losing their lord (There are "revival" codes out there that would greatly compliment this code.). If you don't need it, don't download it. I don't wish to argue over it's value, so if we could please drop it, I would greatly appreciate it. Edited December 22, 2012 by MarkyJoe1990 Quote Link to comment Share on other sites More sharing options...
Chocolate Kitty Posted December 22, 2012 Share Posted December 22, 2012 I was asking if you could modify it and a release a modified version as well :S Quote Link to comment Share on other sites More sharing options...
MarkyJoe1990 Posted December 22, 2012 Author Share Posted December 22, 2012 I was asking if you could modify it and a release a modified version as well :S I'll consider it. You want it to be percentage-based, right? I could probably make something like that. Quote Link to comment Share on other sites More sharing options...
47948201 Posted December 22, 2012 Share Posted December 22, 2012 So sorry, three units. I...Don't understand what you're saying, sorry. I'm just saying that the script can be useful if you're playing a chapter where the main character isn't required to win.Like, imagine you're fighting the Fire Dragon, and Eliwood is about to land the finishing blow, but he misses, and the Dragon scores a fluke critical. Is there any reason the remainder of your forces should be disallowed from completing the game? Or even if, say, you suck at the game and every single one of your units but Athos dies, but the Dragon is almost dead--will Athos abandon the entire chapter and let all the other dragons come in? He really shouldn't. As for the script itself needing suggestions, I don't think it does (hence why I'm arguing like this for it XD). If there's no script currently released to get rid of permadeath (I haven't checked), though, you should make that, since it would go well with this one. Quote Link to comment Share on other sites More sharing options...
CT075 Posted December 22, 2012 Share Posted December 22, 2012 getting rid of permadeath is easy though you can do it with events only 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.