The Dink Network

To bad variables cannot hold texts

December 23rd 2002, 08:29 AM
old.gif
I really hoped you could do:

Whats your name?

&name = &choice

hello &name

December 23rd 2002, 09:09 AM
anon.gif
magicman
Ghost They/Them
 
: I really hoped you could do:

: Whats your name?

: &name = &choice

: hello &name

Well... There IS some way. But ehm... do it only if you are REALLY REALLY REALLY bored.

The idea is that you create a sequence of 27 frames. Then you need a variable to store the word in.

You can let the player choose of different letters (Like the riddles in stone of balance!). Add the number of the letter to the var. 01 = a 02 = b 26 = z etc.

So 08090004091411 is 'hi dink'. There must be some funny way to decode it and to put them in the right order on the screen, but I'm not doing this, I'm not bored. (And I'm to lazy to think of one)

I think this is the way it is done in SoB, but I could be wrong.
December 23rd 2002, 10:39 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
: : I really hoped you could do:

: : Whats your name?

: : &name = &choice

: : hello &name

: Well... There IS some way. But ehm... do it only if you are REALLY REALLY REALLY bored.

: The idea is that you create a sequence of 27 frames. Then you need a variable to store the word in.

: You can let the player choose of different letters (Like the riddles in stone of balance!). Add the number of the letter to the var. 01 = a 02 = b 26 = z etc.

: So 08090004091411 is 'hi dink'. There must be some funny way to decode it and to put them in the right order on the screen, but I'm not doing this, I'm not bored. (And I'm to lazy to think of one)

: I think this is the way it is done in SoB, but I could be wrong.

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?

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.