Page 1 of 1

scripting help

Posted: November 7th, 2010, 1:07 pm
by mstetsen
i want to learn how to make a game with sandbox but i don't know the first thing about scripting. how do i get started and what are some basic commands i can use in sandbox?

Re: scripting help

Posted: November 7th, 2010, 2:47 pm
by PizzaLover101
Look on the wiki, starting there is the best idea
OR
You could look at other scripts and see what you can pick out like i did :)

Re: scripting help

Posted: November 7th, 2010, 7:18 pm
by chocolatepie33
basic commands:

Code: Select all

level_trigger_# = [showgui (NAME)] 
newgui (NAME) [
guitext "Hi."
guibar
guibutton "Hi." [cleargui]
] 
Just a quick little bit of code involving a character (level_trigger_#), which creates a pop-up menu (showgui/newgui) with text (guitext) and the option to say Hi back (guibutton), when you go near him.

I've been working on a big, bad super scripting guide on the wiki, if you want check that out.

Re: scripting help

Posted: November 7th, 2010, 7:28 pm
by mstetsen
thanks guys :D

Re: scripting help

Posted: November 7th, 2010, 7:33 pm
by chocolatepie33
You're welcome.

Re: scripting help

Posted: November 7th, 2010, 8:33 pm
by mstetsen
i still don't get it :|

Re: scripting help

Posted: November 7th, 2010, 8:48 pm
by chocolatepie33
seriously? please make up you're mind, do you understand
mstetsen wrote:thanks guys :D
or do you not?
mstetsen wrote:i still don't get it :|
Also, a bit more specific, what don't you get? And try not to say everything.

Re: scripting help

Posted: November 7th, 2010, 8:53 pm
by mstetsen
where do i type it? what does it do? and what els can i do?...sorry im a total noob :?

Re: scripting help

Posted: November 7th, 2010, 8:58 pm
by chocolatepie33
like I said, look at my scripting guide, it's still a work in progress, but I think I've covered most things, and you put the code in a .cfg file. You can edit the .cfg by hitting F6 in edit mode when you're inside Sandbox, or go to mystuff/packages/base and you can either create one there or there should be one you can edit already there.

Mah scripting guide: http://sandboxgamemaker.com/wiki/index. ... ript_guide