The Dink Network

Reply to Re: To bad variables cannot hold texts

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:
 
 
December 23rd 2002, 11:03 AM
wizardg.gif
Paul
Peasant He/Him United States
 
: Well, variables in Dink are 32-bit integers and their values range from +2147483647 to -2147483648, and I think it's not done this way in SoB, you wouldn't wanna have a bored D-Mod author, right?

It's done that way in Lyna's Story except that I only multiply by 26, not 100 for each letter. And Of course I don't actually decode it and put it on the screen, I just compare it to the numaric value of the right answer. FYI, you can store 6 letters in one var this way. Though in my riddle's case, it deosn't matter if it wraps and become negatve or whatever, since it doesn't have to be decoded. The tricky part of displaying it would be getting the letters spaced right and displayed over someone's head like normal text. You could get around some of the trouble by putting all text at the bottom of the screen or something in your d-mod. It's also possible that dPlay will one day make this easy. Of course the easiest solution is to make the player character a robot, with a numaric name.