The Dink Network

New Tutorial: FIFO & Variables in DinkC

December 5th 2007, 12:17 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Someone also wrote a new tutorial, FIFO & Variables in DinkC. It explains how to take DinkC to its limits... which is surprisingly far. Experienced D-Mod developers will find it very interesting.

December 5th 2007, 06:14 AM
dinkdead.gif
This looks really good!

Someone, by your trick for using pseudo variables, do you mean that &return works in a similar kind of way to &last_text and that something like this...

create_sprite(x, y, blah blah);
sp_whatever(&return, 1);

...would work?
December 5th 2007, 08:03 AM
fairy.gif
Someone
Peasant He/Him Australia
 
That code will work, yes. Just remember &return won't contain the sprite after the second line (it will contain the result from sp_whatever, probably 1).

Considering that limitation I tend to use that trick mostly for this:
create_sprite(..)
sp_script(&return,"script");

Which is the code for what I mentioned in the tutorial.