The Dink Network

Reply to Re: Kerrek's Development Thread (Questions included)

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
July 24th 2012, 06:11 PM
wizardg.gif
Paul
Peasant He/Him United States
 
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.