Commands
Posted: Tue Feb 10, 2004 6:09 pm
Hey, im new here and new to turing, im taking it next year so i can learn about it. my oldest brother taught me some commands but i would like to know all of em and what they do, these are the ones i know:
put " "
var a : string (i only know string)
get a, b, c etc...
delay (time)
im know a bit about the draw command, like drawfillbox and stuff but im not sure how to make em how i want them, and stuff.
if a = " " then
end if
i would like to know about the "or" command so i could put something like: if a = "this" or "that" then, because that would help me a lot... if you guys wanna see what ive done then copy and paste this, i know its not long but oh well...
var a : string
var b : string
var c : string
put "You are in a desert, You can go any way you want, but only one will lead you out... Choose North(n) South (s) east (e) or west(w) and see if you survive..."
get a
if a = "n" then
put "After travelling for while, you see some water. You walk up to it and it is surrounded by Bottles of poison. Will you drink the water? (y or n)"
get b
if b = "y" then
put "You die!"
end if
if b = "n" then
put "You decide not to drink it. You go on some more only to be eaten by a wild snake, that means you die."
end if
end if
if a = "e" then
put "You have been travelling for some time now, you see some people with trucks driving across the desert. Will you ask for a ride? (y or n)"
get c
if c = "y" then
put "You hitch a ride and eventually make it into town where you get a job. After a year you get a promotion, and eventually you are making millions by the hour."
end if
if c = "n" then
put "You walk a little while more until you die of thirst."
end if
end if
if a = "s" then
put "You walk for a long time until you spontaniously combust"
end if
if a = "w" then
put "You begin to walk through the scorching heat. Your leags become tired and soon you can't walk. You begin to crawl because you know nobody is coming for you. You find some water and drink it. You die of hunger."
end if
Archived topic from Iceteks, old topic ID:2026, old post ID:17055
put " "
var a : string (i only know string)
get a, b, c etc...
delay (time)
im know a bit about the draw command, like drawfillbox and stuff but im not sure how to make em how i want them, and stuff.
if a = " " then
end if
i would like to know about the "or" command so i could put something like: if a = "this" or "that" then, because that would help me a lot... if you guys wanna see what ive done then copy and paste this, i know its not long but oh well...
var a : string
var b : string
var c : string
put "You are in a desert, You can go any way you want, but only one will lead you out... Choose North(n) South (s) east (e) or west(w) and see if you survive..."
get a
if a = "n" then
put "After travelling for while, you see some water. You walk up to it and it is surrounded by Bottles of poison. Will you drink the water? (y or n)"
get b
if b = "y" then
put "You die!"
end if
if b = "n" then
put "You decide not to drink it. You go on some more only to be eaten by a wild snake, that means you die."
end if
end if
if a = "e" then
put "You have been travelling for some time now, you see some people with trucks driving across the desert. Will you ask for a ride? (y or n)"
get c
if c = "y" then
put "You hitch a ride and eventually make it into town where you get a job. After a year you get a promotion, and eventually you are making millions by the hour."
end if
if c = "n" then
put "You walk a little while more until you die of thirst."
end if
end if
if a = "s" then
put "You walk for a long time until you spontaniously combust"
end if
if a = "w" then
put "You begin to walk through the scorching heat. Your leags become tired and soon you can't walk. You begin to crawl because you know nobody is coming for you. You find some water and drink it. You die of hunger."
end if
Archived topic from Iceteks, old topic ID:2026, old post ID:17055