The Dink Network

Reply to Re: Local variable problem

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:
 
 
August 7th 2009, 03:23 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Yes, that would probably work, I'll test it. But, getting hit by a hellfire will trigger the hit procedure rapidly in a row, possibly interrupting the effects being handled in the main procedure. I'll let you know if it turns out alright. And a spawned script is not an option, since I can't give it any parameters to work with (so it won't know which sprite summoned it).

EDIT: It seems to work this way, hope it won't shut down after a while or when too many monsters like it are on screen. On another note, I found out the details about the variable bug. Variables declared in the main procedure appear to only be accessible within default Dink procedures such as hit and die, but never custom ones. That's a pity, because I won't be able to split the big hit procedure in multiple easy to read procedures