New forum theme up and running!
Originally posted by SaiKarMeh, you guys are thinking the brute-force approach. For this sort of thing I use hero names.Say there are 10 heroes. Heros 11, 12, and 13 are left blank as names. You need only three since there can only be a total of three possible dead people in the party (four = game over!) You then run through the checking of heroes something like...If Skylar is in party - If Skylar is dead - - Hero name 11 = Skylar - - Variable DeadChara1 = 1 (1 for Skylar being the first hero on the list)If Bob is in party - If Bob is dead - - If DeadChara1 = 0 (to prevent it from writing over Skylar) - - - Hero name 11 = Bob - - - Variable DeadChara1 = 2 - - Else - - - Hero name 12 = Bob - - - Variable DeadChara2 = 2The benefit of doing it this way is that you only need ONE show choices box, referncing the names you made for heroes 11, 12, and 13.Show choices[n11]If DeadChara1 = 1 - Full heal SkylarIf DeadChara1 = 2 - Full heal Bob[n12]If DeadChara2 = 2 - Full heal Bobetc...[n13]etc...Works pretty snazzy.
Originally posted by SaiKarGood call Daetyrnis, forgot you can check that. That cuts down on things a little bit. I've been mucking around with the battle system lately and the conditional branch in battle doesn't have that option.
Originally posted by DaetyrnisQuoteOriginally posted by SaiKarMeh, you guys are thinking the brute-force approach. For this sort of thing I use hero names.Say there are 10 heroes. Heros 11, 12, and 13 are left blank as names. You need only three since there can only be a total of three possible dead people in the party (four = game over!) You then run through the checking of heroes something like...If Skylar is in party - If Skylar is dead - - Hero name 11 = Skylar - - Variable DeadChara1 = 1 (1 for Skylar being the first hero on the list)If Bob is in party - If Bob is dead - - If DeadChara1 = 0 (to prevent it from writing over Skylar) - - - Hero name 11 = Bob - - - Variable DeadChara1 = 2 - - Else - - - Hero name 12 = Bob - - - Variable DeadChara2 = 2The benefit of doing it this way is that you only need ONE show choices box, referncing the names you made for heroes 11, 12, and 13.Show choices[n11]If DeadChara1 = 1 - Full heal SkylarIf DeadChara1 = 2 - Full heal Bob[n12]If DeadChara2 = 2 - Full heal Bobetc...[n13]etc...Works pretty snazzy.You could simplify that by getting rid of the DeadChara variables. Simply check if what the hero name is, hero names can be used very much like strings. :pShow Choices n[11] | n[12] | n[13][n[11]] Case>If Hero11 = "Skylar" then>>Revive Skylar>If Hero11 = "Bob" then>>Revive Bob[n[12]] Case>If Hero12 = "Skylar" then>>Revive Skylar>If Hero12 = "Bob" then>>Revive Bob[n[12]] Case>If Hero12 = "Skylar" then>>Revive Skylar>If Hero11 = "Bob" then>>Revive Bob[/B]
Originally posted by Daetyrnis<>If hero Adam is in Party <>If hero Adam HP is 0 <>If HERO1 name is HERO1 then <>HERO1: name = Adam <------Confused over here <>ELSE <>If HERO2 name is HERO2 then <>HERO2: name = Adam <>ELSE <>HERO3: name = Adam <>End if <>End if <>End if<>End ifWe repeat this for each character (adjusting to their actual name of course), which results in HERO1, HERO2, and HERO3 containing the names of your dead people. After this we have a simple choice given to the player (notice how we use n[X] to show the names of the dead people, which are held in heroes 11 - 13).<>Show Message: Which party member would you like to revive?<>Show Choice: [n[11]] | [n[12]] | [n[13]]<>[n[11]] Case: <><>[n[12]] Case: <><>[n[13]] Case: <>Then we merely check who's name is held in HERO1, HERO2, and HERO3, and heal them. ^_^ (this is just for n[11], or HERO1)<>[n[11]] Case: <>If HERO1 name is Adam then <>Adam: Revive <>Else if HERO1 name is Barry then <>Barry: Revive <>Else if HERO1 name is Carl then <>Carl: Revive...You get the point?
Maaaaaaaaaaaaaaaaaaan I missed you.
Maaaaaaaaaaaaaaan I missed that welcome.