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.

Scripting Question

Talk about anything related to Platinum Arts Sandbox here!
Locked
User avatar
GoBologna120
Member
Member
Posts: 167
Joined: June 10th, 2009, 3:07 pm
Name: Tim
IRC Username: GoBologna
Location: Nowhere in particular.

Scripting Question

Post by GoBologna120 »

How would I make it so that a command only plays based on two variables? For example, checking the current quest AND whether it's comeplete? Would it be like:

Code: Select all

if ( = $quest 0 ) ( = $quest_1_comeplete 1 ) [ something ]
Or maybe:

Code: Select all

if ( = $quest 0 ) [ if ( = $quest_1_comeplete 1 ) [ something ]]
Image
Yay. ^_^
User avatar
Obsidian
Former Staff
Posts: 454
Joined: May 24th, 2009, 1:52 pm
IRC Username: Katana
Contact:

Re: Scripting Question

Post by Obsidian »

Most likely, && should work between the things you want to check.
うるさいうるさいうるさい!

github: https://github.com/damianb/
User avatar
GoBologna120
Member
Member
Posts: 167
Joined: June 10th, 2009, 3:07 pm
Name: Tim
IRC Username: GoBologna
Location: Nowhere in particular.

Re: Scripting Question

Post by GoBologna120 »

Those weren't listed in the wiki, but I'll try that. Thanks.
Image
Yay. ^_^
User avatar
johnno56
Member
Member
Posts: 158
Joined: June 12th, 2009, 4:06 am
Name: John
Location: Melbourne, Australia

Re: Scripting Question

Post by johnno56 »

You may already have this info, but just in case you do not, I have a Cubescript Introduction file that I found interesting. It was for Sauerbraten, but could still be used for Sandbox. I hope it helps.

Regards

J
Cubescript Introduction.doc.gz
Introduction to Cubescript
(18.62 KiB) Downloaded 89 times
I use Linux - file is gzipped...


I'm not sure if I have done the attachment correctly. If not, I can email it to you.
May your journey be free of incident.

Live long and prosper.
User avatar
Mike
Administrator
Administrator
Posts: 871
Joined: May 24th, 2009, 12:52 pm

Re: Scripting Question

Post by Mike »

I'm not sure how recent that document is but I know that he recently updated his guide as well here:
http://www.clearcrystal.co.uk/cubescript_1.html

It was actually hirato who helped him clean up some stuff :D Take care!
-mike
Sign up for our Newsletter to keep up to date with the Sandbox news!
We also have a facebook page, facebook group, myspace page and a twitter page[/b][/color]!
Locked