character.view/updating functions - SOLVED

Started by Kinoko, Fri 13/08/2004 16:55:04

Previous topic - Next topic

Pumaman

Well, if it's a Miss, the GlobalInt 7 doesn't get set to 1, so there's nothing to stop the code all running again.

Offhand, I can't see how you'd be getting two hits in a row, though.

Also, there's a workaround for using %d/%s with any command, just do:

string buffer;
StrFormat(buffer, "Molerat takes %d damage! Molerat's HP is %d", mondmg, molehp);
DisplaySpeechBackground(EGO, buffer);

Kinoko

#21
Ahh, I've fixed the code in the "miss" section, thanks for that. I'll keep that workaround in mind, too.

I really don't understand what's happening with the double(or more) ups either... I'm having a similar problem (thread currently in the Beginners Help) with trying to stop an action happening more than once with each key press. It seems to work, but if I keep a key held down, the action will continue to run continuously despite being told in the script not to run again until the first action is completed. I was hoping that if anyone, you'd have an idea of what was happening here ^_^;;; I don't understand it, but it just seems as though when the code is called, certain blocks don't happen quick enough before the code is called again. I really don't know...

EDIT: Well, that problem has been fixed and it seems to have fixed the problem of the double-ups too. I'm not sure why, but things are working well now. Crazy. Thanks for all your help, anyway.

SMF spam blocked by CleanTalk