Index




Map Main Roads

My proposal is to draw thicker exit lines for main roads. You can do this in the exit customization widget (will pop up, when pressing with the middle mouse button on an exit button).


Map Underworlds/Dungeons

Use the background images of the type 'bg_bw_below' and category 'underworld'. Normally use the tunnel image. Set the exitline color to 'bg def' and "dig" your way thrue. You could also use the color 'bg dark', if you want to. If you want to, you could use the solid_rock image and dig your thrue the rock,..


Random Numbers

SMM++ provides access to tcl's expr-command via the #math command. Among various things expr can produce random numbers.

You can find the expr. docu in your SMM++-distribution: docu/html/manExpr.html or a link to it, where the #math command is described

taken from there:

rand()
Returns a floating point number from zero to just less than one or, in mathematical terms, the range [0,1). The seed comes from the internal clock of the machine or may be set manual with the srand function.

also useful to know:
int(arg)
If arg is an integer value, returns arg, otherwise converts arg to integer by truncation and returns the converted value.
ceil
rounds upwards to the nearest int
floor
rounds downwards to the nearest int
also available: sin, cos, tan, asin, ... exp, pow, fmod, sqrt, log, ...

I guess that will cover all needs;)

so,.. how does it look in SMM:

#nop --- random number [0,1) 
#math x "rand()"

#nop --- random number [0,10)
#math x "rand()*10"

#nop --- random int number 0-9
#math x "int(rand()*10)

#nop --- random int number 1-10
#math x "int(rand()*10)+1"

#nop --- round a number to the nearest int:
#variable y 5.345
#math x "int($y+0.5)"
#showme $x
#variable y 5.545
#math x "int($y+0.5)"
#showme $x
    



Separate Map Window

You can advise SMM++ to have the mapping part in a separate window. You have to choose this before startup. Once SMM++ is started your setting cannot be changed.

In your 'smm', 'smm.itk' or 'smm.ITkW' you will find a line

set SMMMAPWINDOW 0
    
change it to
set SMMMAPWINDOW 1
    
and you get a separate mapping window. If you want to have both settings without having to edit the file over and over again, just spend another startup file which has the other setting. Name it however you like it. Just be sure that the extension is the same. For unix systems you must make the file executable
chmod +x <filename>
    





Last modified: Sun Dec 19 20:05:48 CET 1999