The Dink Network

Reply to Re: Recent Release: Historical Hero II

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 22nd 2012, 07:01 AM
anon.gif
shevek
Ghost They/Them
 
Is there a way to check the value of a variable in-game

The "official" way would be to put this in some function which you can trigger:

debug ("the current values is &troph7.");


which will write this line (with the variable substituted) into a file (and for freedink also the terminal, which is much more useful) if debugging is enabled.

However, the simpler way that everyone is using AFAIK, is to use:

say ("the current value is &troph7", 1);


which makes Dink say it, and you don't have to search for the file or go to debug mode.

You can put the code in dnotalk.c, for example. Then when talking to "nothing", it will say this instead of the usual "I'm bored" etc.