Page 1 of 3

Cube Scripting Tutorials

Posted: June 3rd, 2010, 12:18 pm
by arcones
DOWNLOAD: Latest CubeScript map update. (This time, the text actually works and I fixed some errors)
cstutorial1.1.zip
(79.01 KiB) Downloaded 480 times
EDIT: THIS DOESN'T WORK!!!

Instead of going into the syntax of everything, I'm just going to give you extremely detailed tutorials. These have helped me considerably and address most if not all the concepts of CubeScript.

Without further ado, Cube Scripting Guide

These include several chapters (4 to be exact) and delves into gui menus, $arg, and more.

This tutorial is very lengthy and includes much about the "Integer Arithmetic" of CubeScript. CubeScript
If you have any problems, post below and we can try to answer it!

Code: Select all

"level_trigger_1" = "showgui Friend"
newgui "Friend" [
	guitext "Hi I'm your friend!" chat
	guitext "Want to talk?" chat
	guibutton "Sure!" "showgui Friend_1"
	guibutton "No. (close)" "cleargui"
	]"Arcones

newgui "Friend_1" [
	guitext "So, do you like Sandbox?" chat
	guibar
	guibutton "Yes! Duh!" "showgui Friend_1.1"
        guibutton "No, not really (close)" "cleargui"
]"Arcones"

newgui "Friend_1.1" [
       guitext "I love as well! Very easy to create games!" chat
       guitext "Shop scripts are easy, dialogues like this one" chat
       guitext "are easy, and menu's should be easy as well!" chat
       guibar
       guibutton "That's great!" "showgui Friend_1.2"
       guibutton "Interesting! Menus' you say?" "showgui Friend_1.1.1"
       guibutton "K, well I need to go!" "cleargui" echo "See ye later!"
]"Arcones"

newgui "Friend_1.2" [
       guitext "Yep, it is! Sandbox is continually growing!" chat
       guitext "Did you know that there's a Vehicle Simulator coming out?" chat
       guitext "And a Flight Simulator?" chat
       guibar
       guibutton "Wow! That's incredible!" "showgui Friend_1.3"
       guibutton "Yeah I did, Water Wars too!" "showgui Friend_1.4"
]"Arcones"

newgui "Friend_1.1.1" [
       guitext "Yep, menus should be easier to make once a tut is out!"
       guibutton "Okay, well I need to go!" "cleargui"
]"Arcones"

newgui "Friend_1.3" [
       guitext "Yes it is and I'm glad you think so!" chat
       guitext "It will definitely draw more people in!" chat
       guitext "But I got to go now! See you later!" chat
       guibutton "Bye! (close)" "cleargui"
]"Arcones"

newgui "Friend_1.4" [
       guitext "Water Wars ye say?" chat
       guitext "Sounds fun! Is it going to be released soon?" chat
       guibutton "I don't know..." "showgui Friend_1.4.1"
       guibutton "It's actually in the SVN right now!!!" "showgui Friend_1.5"
]"Arcones"

newgui "Friend_1.4.1" [
       guitext "That's okay, I'm sure it'll come out soon!" chat
       guitext "Bye now!" chat
       guibutton "Bye!" "cleargui"
]"Arcones"

newgui "Friend_1.5" [
       guitext "That's awesome! Gonna go pick it up and play it!" chat
       guitext "So I'll go now!" chat
       guibutton "Alright see ya!" "cleargui"
]"Arcones"
Whaddya think?? :D

Arcones :geek:

Re: Cube Scripting Tutorials

Posted: June 3rd, 2010, 1:06 pm
by GR1M
Yeah those are very helpful but we as a team should make one Sandbox style.

Re: Cube Scripting Tutorials

Posted: June 3rd, 2010, 1:26 pm
by arcones
Most of the stuff (if not all) works for SB anyways and I don't want to take the time to make an entire post all about the phonetics of CS :D

Re: Cube Scripting Tutorials

Posted: June 5th, 2010, 9:26 am
by arcones
I will most likely publish a CubeScript Tutorial Map today!

This will include the code so that you may dissect it at your pleasure!! A simple dialogue system :)

Re: Cube Scripting Tutorials

Posted: June 5th, 2010, 12:18 pm
by Runescapedj
I think I'm going to try this if I have a bit more time (much tests to come...), but maybe I can try it tomorrow

Re: Cube Scripting Tutorials

Posted: June 5th, 2010, 1:41 pm
by arcones
:D Great! I'm gonna start working on the cstutorial map! (very soon at least) :)

Re: Cube Scripting Tutorials

Posted: June 5th, 2010, 1:52 pm
by GR1M
What kind of scripting are you going to include?

Re: Cube Scripting Tutorials

Posted: June 5th, 2010, 5:05 pm
by arcones
Dialogue!

HERE IT IS! (first post sorry) :P

Included is a sample script as well! I'll try to post a menu script soon! :D

Arc :geek:

Re: Cube Scripting Tutorials

Posted: June 6th, 2010, 12:56 am
by GR1M
Not to sound like a grouch but the zip only provides the ogz and art files, OK... but where's the .cfg file specially for scripts? You can even add scripts to the end of the art file but the art file you provided doesn't even posses the script. The only hint of scripting is the .txt file you included and even then people wouldn't know what to do with it? Like i said i don't mean to sound mean just wondering?

Re: Cube Scripting Tutorials

Posted: June 6th, 2010, 7:12 pm
by chocolatepie33
Well, they just open up the .txt file, go to save_as, choose "all files", then change it from .txt to .cfg. done.