New Tutorial: FIFO & Variables in DinkC
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.
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?
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?
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.
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.