- Napoleon 27s Bad bish is bad.
- Aliferous 54s
- mushroomjazzy 13s
- Newbs21 2m We're all crazy here!
- Neekly 35s
- Evangeline 50s
- Fire 2m
- Sybre 16m
j Johnny 34m New Code Written Nightly. Not a GM.
- IntroWarmth 51s
- Vera 3m youtu.be/maAFcEU6atk
- VikingOtaku6 55m
- BCingyou 3s
- Ryuzaki4Days 3m Shoot your ace in the face.
- whatislove00 24m https://www.youtube.com/watch?v=d9xsiKZUK-U
- himble 11m youtu.be/og243Dom4Sw
- OdinGSM 12m
- Meoris 5s https://www.youtube.com/watch?v=Vn5OMaPiX2M
- Dumpster 5m
- Gumdrop222 36s
- Scarlyt 13s Sindome is ace.
- Luck 39m
- crashdown 12s
- Baron17 4h
- maxxieway26 5h
- Baguette 56m ye boi
- JMo 43s You can't have a conscience in the pimp game.
- Pizzaman 17m
- Malanth 14s
- Cyberpunker 0s
- Kanuin 34m
- Dawnshot 56s https://youtu.be/qg_7saEbnwE
- jsmith225 9h
a Cerberus 25m Head Builder & GM when I need to
- Dorn 1m youtu.be/7OUqUiZQxs4
- Chrissl1983 5h working on my @history for too long...
- Azelle 3s
And 27 more hiding and/or disguised
Connect to Sindome @ moo.sindome.org:5555 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?