magicman's Profile
I'm called magicman here, but my real name is Joeri van Eekelen and I'm from The Netherlands.
I'm 37 years old and currently being a programmer who's involved in social housing software.
My interest in Dink goes off and on. It is currently off. Check back later. I kinda like sourcediving into the Dink engine, which is an awesome way at figuring out why some unexpected behaviour occurs.
Scripting techniques rant
Some Notepad++ Python scripts
Error in map_tile(); documentation.
Why void touch( void ) freezes, void die( void ) fails to complete, and you need wait(1) in loops.
About external(), spawn(), procedure calls, run_script_by_number.
For those interested, you can read my Dinkerview from early 2014.
I'm 37 years old and currently being a programmer who's involved in social housing software.
My interest in Dink goes off and on. It is currently off. Check back later. I kinda like sourcediving into the Dink engine, which is an awesome way at figuring out why some unexpected behaviour occurs.
Scripting techniques rant
Some Notepad++ Python scripts
Error in map_tile(); documentation.
Why void touch( void ) freezes, void die( void ) fails to complete, and you need wait(1) in loops.
About external(), spawn(), procedure calls, run_script_by_number.
For those interested, you can read my Dinkerview from early 2014.
Pseudo code...
Somewhere:
//&spawned is global, you can also use any other valid check, just make sure it isn't run twice at the same moment, or you must want that.
if (&spawned == 0)
{
spawn("other_script");
//add .c extension?
&spawned == 1;
}
other_script:
void main( void )
{
wait(&loooong_time);
pee();
}
And the poison would be done with a loop and a timer or something.
other_script:
void main( void )
{
int &timer = 0;
loop:
wait(1000);
&timer += 1;
if (&timer == &time)
{
if (&poisoned != 1)
{
//Kill if not poisoned
kill_this_task();
}
&life -= 5;
}
goto loop;
}
Somewhere:
//&spawned is global, you can also use any other valid check, just make sure it isn't run twice at the same moment, or you must want that.
if (&spawned == 0)
{
spawn("other_script");
//add .c extension?
&spawned == 1;
}
other_script:
void main( void )
{
wait(&loooong_time);
pee();
}
And the poison would be done with a loop and a timer or something.
other_script:
void main( void )
{
int &timer = 0;
loop:
wait(1000);
&timer += 1;
if (&timer == &time)
{
if (&poisoned != 1)
{
//Kill if not poisoned
kill_this_task();
}
&life -= 5;
}
goto loop;
}
magicman has released 6 files
Title | Category | Avg | Updated |
---|---|---|---|
WAITWUT | Miscellaneous | N/A | January 23rd, 2016 |
Persistent Loot | Development | 8.8 | March 13th, 2012 |
Enemy Healthbar | Development | 9.7 | February 20th, 2007 |
Cooltext | Development | 9.0 | July 7th, 2003 |
Beginning of Evil | D-Mod, Romp | 6.7 | June 27th, 2003 |
Dink Racer | D-Mod, Miscellaneous | 4.7 | September 15th, 2002 |
magicman has written 4 reviews
Title | File | Type | Score | Date |
---|---|---|---|---|
This Pack Consists of 27 Sprite Graphics | House Graphics | Featured | 4.2 | June 6th, 2005 |
This is One Really Special D-Mod | Cast Awakening Part 1: Initiation | Featured | 9.5 | November 2nd, 2004 |
Wow | NitroDink | Featured | 4.7 | January 1st, 2004 |
Okay | Rascal | Featured | 7.0 | July 7th, 2003 |
magicman has taken 1 screenshot
Screenshot | File | Date |
---|---|---|
Ninja Dude Graphics | June 15th, 2014 |