The Dink Network

Reply to Re: Magic? BUT HOW?

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:
 
 
October 5th 2012, 07:04 PM
anon.gif
shevek
Ghost They/Them
 
Magic has a cost, in the variable &magic_cost (this should be set when the magic is armed). If &magic_level is lower than that cost, Dink will be unable to cast it.

&magic_level automatically gets increased. The increase is faster if &magic is higher. If Dink has 0 magic, &magic_level does not increase, and the magic level will never be charged up, so he will never be able to actually cast anything.

In other words, to cast magic, dink must have the magic (from a script which did add_magic); it must be armed (from the inventory screen, or with arm_magic), &magic must be larger than 0, and (usually by waiting) &magic_level must be equal to &magic_cost.

That's mostly true anyway. He can cast if &magic is 0, if &magic_level is equal to &magic_cost. But only once, as the magic level will not recharge.