Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Cube Scripting Tutorials

Learn more on how to use Sandbox, or submit your own tutorials or resources.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Cube Scripting Tutorials

Post 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:
Last edited by arcones on October 20th, 2010, 4:27 pm, edited 1 time in total.
Image
Want a user bar like this one? PM Leo!
User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: Cube Scripting Tutorials

Post by GR1M »

Yeah those are very helpful but we as a team should make one Sandbox style.
Image
Want a user bar like this one? PM Leo
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Cube Scripting Tutorials

Post 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
Image
Want a user bar like this one? PM Leo!
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Cube Scripting Tutorials

Post 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 :)
Image
Want a user bar like this one? PM Leo!
User avatar
Runescapedj
Member
Member
Posts: 1706
Joined: January 9th, 2010, 9:06 am
Name: Michiel
IRC Username: Sandboxdj
Location: Deventer, the Netherlands

Re: Cube Scripting Tutorials

Post 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
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Cube Scripting Tutorials

Post by arcones »

:D Great! I'm gonna start working on the cstutorial map! (very soon at least) :)
Image
Want a user bar like this one? PM Leo!
User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: Cube Scripting Tutorials

Post by GR1M »

What kind of scripting are you going to include?
Image
Want a user bar like this one? PM Leo
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Cube Scripting Tutorials

Post 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:
Image
Want a user bar like this one? PM Leo!
User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: Cube Scripting Tutorials

Post 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?
Image
Want a user bar like this one? PM Leo
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Cube Scripting Tutorials

Post 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.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Post Reply