Reply to Re: Kerrek's Development Thread (Questions included)
If you don't have an account, just leave the password field blank.
Dem bones, dem bones, foot bone's connected the rifle bone?
Does it really work with spells? I seem to recall reading somewhere that it didn't. Oh well.
Yeah, it does. It will continually call use() for spell as long as shift is held down, &magic_level >= &magic_cost and Dink is not frozen. You can see this even in the original game with fireball if Dink has alot of &magic.
But an interesting aspect of how it works is that if use() contains a wait command, and all of the above is still true when it executes, the script will interrupt itself and nothing below the wait will run. And so, with a little creativity, you can actually test when shift is released.
Does it really work with spells? I seem to recall reading somewhere that it didn't. Oh well.
Yeah, it does. It will continually call use() for spell as long as shift is held down, &magic_level >= &magic_cost and Dink is not frozen. You can see this even in the original game with fireball if Dink has alot of &magic.
But an interesting aspect of how it works is that if use() contains a wait command, and all of the above is still true when it executes, the script will interrupt itself and nothing below the wait will run. And so, with a little creativity, you can actually test when shift is released.