The Dink Network

Reply to Re: Strings in Dink

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:
 
 
November 6th 2008, 01:36 AM
fairy.gif
Someone
Peasant He/Him Australia
 
Huh? There's several DMODs where you input strings. Outputting is easy enough when you have a font where all characters are of the same width. The only hard bit is getting everything to line up, say if you wanted someone to say "Hi <NAME>, how are you?". But if you wanted to just say the name on a line on its own, it's very possible to write a function that does that. A function that allows you to print the string inside more text is a little more difficult, and would require the coder to count how many characters before and after, but should be possible too.

A cool way is to have an external program that reads a particular save file and updates all the scripts with the strings. Then you could have say("Hi <NAME> !!",&current_sprite)..

I think I've written about this here previously.