Page 4 of 6

Re: Shop Example Script

Posted: August 29th, 2010, 4:09 pm
by [gamemaker]
im new to scripting in sandbox i was wondering if some one would explane how to atach the script to the shop keper so when you walk near him he would talk an bring up the shop menu also how to make quest and rewards for the compleation of the quest thanks

Re: Shop Example Script

Posted: August 29th, 2010, 4:42 pm
by owenisred
Ask in the support board.

Re: Shop Example Script

Posted: August 29th, 2010, 8:43 pm
by chocolatepie33
I'm not sure what you mean by attach...

To get the shopkeeper to work, you need to place an ogre model (F1, tab 4 or 5, I think), add an invisible model where the ogre is (in the console: / newent mapmodel -1 ) and give it trigger type 11, trigger tag 2 (or whatever the shopkeeper tag is in the script.)

Re: Shop Example Script

Posted: October 3rd, 2010, 8:23 pm
by daltonds1
This isnt that great if you have 6+ items

Re: Shop Example Script

Posted: October 4th, 2010, 3:11 am
by Leo_V117
Shouldnt make much of a difference.

Re: Shop Example Script

Posted: October 4th, 2010, 4:16 pm
by daltonds1
it doesnt go down its just a big long line

Re: Shop Example Script

Posted: November 27th, 2010, 9:28 pm
by chocolatepie33
Leo_V117 wrote:Quick Note Harrison... Change it to this:

Code: Select all

                 else if ( < $money 10 ) [
                   echo "Sorry, you don't have enough money to buy this!"
                ]
That way it tells you instead of opening a new gui
So wait, Cubescript also has an If... Else function? I thought it was just If... (and that's it).
Speaking of which, is there a switch case function or something similar then?

Re: Shop Example Script

Posted: November 27th, 2010, 11:13 pm
by Hirato
*grumble grumble*
docs are written not to be read
*grumble grumble*
http://sandboxgamemaker.com/wiki/index. ... FDecisions
*grumble grumble*

just keep in mind there's a 25 word limit, the command is the first so you can provide up to 24 additional arguments

Re: Shop Example Script

Posted: November 28th, 2010, 6:06 pm
by chocolatepie33
OK, thanks Hirato. Just wondering.

Re: Shop Example Script

Posted: January 17th, 2011, 3:59 am
by dukeJoe
nice one!
Good job fella!.. you had contributed something useful, specially for me.. ;)
______________________________________
gi joe sword -- Our swords shall play the orators for us.