View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Tue Nov 25, 2003 4:25 pm Post subject: Dying in battle without ending game |
|
|
Say you want to make a battle that you are supposed to lose (story-related). How do you make it so that you don't lose the game, but instead go on with the plotscript? |
|
Back to top |
|
 |
GMan1988

Joined: 01 Nov 2003 Posts: 16 Location: Nowhere
|
Posted: Tue Nov 25, 2003 4:30 pm Post subject: Dying in battle without ending game |
|
|
Whoops, forgot to log on first .
Anonymous wrote: | Say you want to make a battle that you are supposed to lose (story-related). How do you make it so that you don't lose the game, but instead go on with the plotscript? |
That was really me . _________________ .hack//SIGN is freakin' awesome. |
|
Back to top |
|
 |
Me HI.

Joined: 30 Mar 2003 Posts: 870 Location: MY CUSTOM TITLE CAME BACK
|
Posted: Tue Nov 25, 2003 5:01 pm Post subject: |
|
|
Well, what you'd want to use is an if() statement checking a fight formation() function. The fight formation(#) function returns 1 if you win and 0 if you run or are defeated, so:
Code: | script, unbeatable boss, begin
if(fight formation(blah)==0) then
(
Do stuff after losing to the boss here
)
end |
I THINK that should do it. However, I myself haven't tested it yet, as I don't have OHR on this computer, but once I do test it I'll get back with confirmation. Or someone else will tell me why I'm wrong before that. But try that method out.
There was another unbeatable boss method on Moogle1's site that used tags and game-over scripts and stuff, but I forget the URL. Perhaps someone could post it? _________________ UP DOWN UP DOWN LEFT LEFT RIGHT RIGHT A B START |
|
Back to top |
|
 |
Iblis Ghost Cat

Joined: 26 May 2003 Posts: 1233 Location: Your brain
|
Posted: Tue Nov 25, 2003 5:06 pm Post subject: |
|
|
I think you're supposed to use "set death script." It's in the plotscript dictionary. _________________ Locked
OHR Piano |
|
Back to top |
|
 |
GMan1988

Joined: 01 Nov 2003 Posts: 16 Location: Nowhere
|
Posted: Tue Nov 25, 2003 5:07 pm Post subject: |
|
|
Hmmm. I see how that could work, so I'll try it out. Thanks.
Oh, and I like your signature, Iblis. *evil laugh* _________________ .hack//SIGN is freakin' awesome. |
|
Back to top |
|
 |
Guest
|
Posted: Tue Nov 25, 2003 5:44 pm Post subject: |
|
|
I tested it out, and it works! Thanks a lot, guys. |
|
Back to top |
|
 |
GMan1988

Joined: 01 Nov 2003 Posts: 16 Location: Nowhere
|
Posted: Tue Nov 25, 2003 5:46 pm Post subject: |
|
|
Okay, that was me again.
I swear I didn't log off, though...  _________________ .hack//SIGN is freakin' awesome. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Nov 25, 2003 10:46 pm Post subject: |
|
|
I think that that method wouldn't work if you also set a on-death script, as that script would run when you lose the battle, and before control is not returned to the 'unbeatable boss' script. In which case, just turn on a tag before you fight the boss, and in your game over script write
if (check tag (#) == 0) then (gameover)
so that control is returned to your script. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Flamer The last guy on earth...

Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Wed Nov 26, 2003 2:47 am Post subject: |
|
|
the on death script shouldn't run if the battle was within another script... i haven't tested this, but i'm sure of it...
the best approach to an "unbeatable boss" fight would be as suggested by Me. though it could be
Code: | If(fight formation==true) then(show textbox(WTF!?))
else(commands here) |
or
Code: | If(fight formation==true) then(show textbox(WTF!?))
commands here |
is if the player did manage to win, maybe he/she can get a secret item or something  _________________ If we were a pack of dogs, IM would be a grand Hound, CN would be a very ficious little pitball, and Giz...well, it doesn't matter breed he is, he'd still be a bitch
(no offense to anyone that was mentioned) |
|
Back to top |
|
 |
GMan1988

Joined: 01 Nov 2003 Posts: 16 Location: Nowhere
|
Posted: Wed Nov 26, 2003 1:14 pm Post subject: |
|
|
I like the secret item idea, but right now I'm just going story-wise. I made the guy with extremely high HP and if you do somehow manage to kill him, he just respawns. _________________ .hack//SIGN is freakin' awesome. |
|
Back to top |
|
 |
Roach Lir

Joined: 08 Jul 2003 Posts: 119 Location: United Kingdom
|
Posted: Fri Nov 28, 2003 9:46 am Post subject: |
|
|
Yo yo yo!
Get the script written by the man himself (James Paige) at:
http://moogle1.stormpages.com/pstutor/dieinbattle.html
Thats the script you want! Moogle1's site has a ton of other cool scripts too. _________________
Dark Legacy - 0.3% |
|
Back to top |
|
 |
|