View previous topic :: View next topic |
Author |
Message |
Soule X

Joined: 13 Sep 2004 Posts: 131 Location: Indiana
|
Posted: Sat Jun 18, 2005 8:15 pm Post subject: Fight Formation / After Battle conflict question. |
|
|
Okay, there's a bug where if you have a script like:
Code: | if (fight formation (1))
then (A)
else (B) |
And if you have an "After Battle" script set it runs the code in the else block, even if you win.
Now I'm working with the wolfwood version of custom.exe right now; I haven't bothered to download the new one, but I didn't see anything about this bug in the update list. I seem to recall this topic popping up a long time ago, but I didn't really pay any attention to it. Is there any work-around for it or is it fixed in the new version or what?
Thanks. |
|
Back to top |
|
 |
Linkmax I'm an idiot.
Joined: 03 Feb 2003 Posts: 202 Location: Oly
|
Posted: Sat Jun 18, 2005 8:17 pm Post subject: |
|
|
You really should update it, the newer version is much better. |
|
Back to top |
|
 |
Mike Caron Technomancer

Joined: 26 Jul 2003 Posts: 889 Location: Why do you keep asking?
|
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Mon Jun 20, 2005 10:46 am Post subject: |
|
|
Yes, you can. It returns true if the battle is won, false otherwise (death or escape).
The problem is that the return value is changed when the after-battle script is run. There's not an easy workaround for this, except not to use an after-battle script.
...which doesn't help you, I know, but that's why it's happening. _________________
|
|
Back to top |
|
 |
Setu_Firestorm Music Composer

Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
|
|
Back to top |
|
 |
Soule X

Joined: 13 Sep 2004 Posts: 131 Location: Indiana
|
Posted: Mon Jun 20, 2005 9:07 pm Post subject: |
|
|
Oh well, luckily the game I'm currently working on has every battle called from a script, so I just had it also call the "after battle" script every time I used "fight formation".
But this certainly sucks for games that use the after battle script for random battles and those not called from scripts. I guess you could try and stage the battle on a separate map or something... oh well. |
|
Back to top |
|
 |
|