Reset Password
Existing players used to logging in with their character name and moo password must signup for a website account.
- Rangerkrauser 2m
- whatislove00 2m
- Vivvykins 1m
- Baron17 3m
- Malakai 26s
- Atheran 10m
- Jaydon2317 4s
- Napoleon 40m Bad bish is bad.
- Kiwi 8m I guess there's always something killing me.
- Stelpher 1m
- Strummer 19s
- Marioanius 5m Hamilton wrote, the other 51!
- Neekly 36m
- vantablack 21s
- PriceCheck 2s
- DiamondNine 5m
- jsmith225 2h
- pfh 21m
- RealHumanBean 18s Something?
- Oberst 2h
- Storm 10m
- janee 48m
c Butako 8m Butakooooo the builder. Can she fix it? Eh.
- Archer 0s
- Luck 10m
- batko 1m
- ComradeNitro 5m
- Ephemeralis 19m
- Cyberpunker 5m
- Dumpster 8m
- Melpothalia 59s That's Mrs. Broken Brain [Bottom Text] to you!
- Ghostinthekeys 2m
- Hippo 1m
- Manywaters 46s
- villa 5s
- Diani 5m Why do you write like you're running out of time?
- Fire 1m
- Solshine 3m
- crashdown 1m
- Lofi 5h
- Shanee5000 1h Love as thou wilt.
- arm0r3r 1s
- geoux 4h
a Cerberus 47s Head Builder & GM when I need to
- Malestrom 4h
- SacredWest 8h
j Johnny 2h New Code Written Nightly. Not a GM.
And 36 more hiding and/or disguised
Connect to Sindome @ or just Play Now

Part 4: Math
1 + 1 = ?

As you probablly noticed in the 99 Bottles of beer script, you can now 'decrement' (decrease by one) variables that are integers (numbers). You can also increment (increase by one) them with the 'increment' command.

You can also do math with the 'math' command.

The math command takes a result variable, a left hand operand, a operator, and a right hand operand, and sets the result to the result variable, with valid operators being + - * / (plus, minus, multiply, divide respectively).

It looks like this.

set "%a" 1
set "%b" 1
math "%c" = %a "+" %b
// %c is now 2
math "%d" = 2 "*" %c
// %d is now 4
math "%d" = %d "-" 1
// %d is now 3

You can check to see if two numbers are equal or not equal in the standard way:

if equals 1 %a
 //do something

if notequals %a %b
 //do something
 //do something else

And finally you can get a random number between 1 and X by with 'random "%rand" X' where X is any positive number. If you want to make it negative afterwords, multiply it by -1.

Like this

random "%rand" 4
if equals 1 %rand
 //do 1 here
elseif equals 2 %rand
 //do 2 here
elseif equals 3 %rand
 //do 3 here
elseif equals 4 %rand
 //do 4 here

If your confused as to why this is useful, take a look at the 99 Bottles of Beer script... You can do really dynamic things.

Questions? Comments? Screams of agony?