Posted by Triuken 206.173.26.44 using Mozilla/4.51 [en] (Win98; I) on March 05, 2000 at 08:28:04:
In Reply to: Major bug causing biiiig problems. posted by Cyrus on March 04, 2000 at 13:39:37:
#GetSMP("Triuken",charSMP!) #METHOD DoMove() * Put this at the end Of course, this is difficult to do on EVERY move, but its a start. I'll be back in about a week.. (i cant work on MysticSoft either, so if your wondering why nothing is added...) -Triuken :(
Okay, here's a possible temporary solution. Until the bug is fixed, this is the best i can think of...
Okay Lets say a ninja.. lets call him Triuken, is using a move called, uh, katana kick, which costs, hmm, 15 SMP. I would do::::
#IF(charSMP!<15)
{
#MWIN("Not enough SMP.")
}
#IF(charSMP!>=15)
{
#DoMove
}
{
* Here's the move.
#MWIN("Katana Kick")
#GiveSMP("Triuken",-15)
}
Things to note:
1) The move must have 0 SMP set as the casting cost to avoid taking double.
2) I know this isn't the best solution, as it does add a whopping 13 lines of code to your program.
3) Of course you could always wait until the next bug-fix, but i think more people would be happy with a release sooner than later.
4) Most of you probably understand, but you would change Triuken to the user's name, 15 to the casting cost, -15 to the negative casting cost, and, of course, the move properties (keep that last line though, as it takes the SMP)
5) Hey, its the best i could think of.. i haven't been using RPGCode for a while..
I'll be back.. maybe today or tomorrow, but i doubt it..
: If the SMP runs out or below the required amount to use a SPecial move and then the player uses it, the game will display an error message and lock up the computer.
: If you're in the middle of a battle and are using a special move over and over again, its easy to not notice that you've run out of SMP...so this will completely screw anyone playing the game.
: I cant possibly release my next demo until this is corrected...its just not gonna happen.
: There's no way I can rewrite the game at this point to compensate for this bug.
: Chris, pleaaaasseeee help me here...
: -Cy