Page 1 of 3

Beter scripting soruce?

Posted: October 19th, 2010, 6:58 pm
by kentl
I need help but I'm not sure if this is the right place for this

It may just be me but the wiki seems to just "dabble" on it and really only explain it to those who know something about scripting already

so with that two thing
1. Is there a better more in depth thing some where?
2. did anyone else besides me have problems getting this language down?

since this is for kids I would think we would have a more "simple" way of describing things and go in to more details


then again maybe it is me I learn by seeing not reading

Re: Beter scripting soruce?

Posted: October 19th, 2010, 7:08 pm
by chocolatepie33
Well, there's not much on Cubescript anywhere I think, if you want to make a tut I'll help, but you'll have to say what's first (and easiest), and then on... OK? However, I only know about 2.5 scripting...

Re: Beter scripting soruce?

Posted: October 19th, 2010, 8:12 pm
by kentl
chocolatepie33 wrote:Well, there's not much on Cubescript anywhere I think, if you want to make a tut I'll help, but you'll have to say what's first (and easiest), and then on... OK? However, I only know about 2.5 scripting...
I'm no where good enough to teach everything there is but the basics I could give it a shot.
I'd say some of us can try to "clean it up" and try to make it more kid\people who don't know what they are doing friendly :mrgreen:

as for whats basic a order thats close enough
where to write scripts, believe me when i say many people don't know its F6
how to put the scripts to things (whats the point of the scripts if you don't know how to use them?)
Level triggers (See above)
Trigger types (i think thats what they are called) for an example you need to put 12 to pick up the item
Brackets (its explained but using big words that young people may not get
show something like

Code: Select all

 Level_trigger_1 =  [ action goes here
and here  and here
] in till the action is done then you put a ] to end the action "

then a script that works

Code: Select all

Level_trigger_1 = [ Coin = (+ $coins 1)
Echo "you picked up one coin"
] 

that explains what the brackets do
the level_trigger = an action, a bracket is the the start of an action [, and the end of an action ]
Ex
the level trigger causes an action the action is the "Coin" will = + a pre set amount in this case 1
so it = one coin
then the echo will tell you that it added it EX "you picked up one coin"


I may have scripted that wrong I just put what ever
if nothing eels take the scripts form the maps like the village as an example (they did it with the princess one already)

form what i seen anything you had on 2.5 will work on 2.6 so your information is as good as mine if not better (more then likely better)
I've been using scripts you guys wrote on the forums and besides the fact that I make mistakes they all work.



the forums are a great source but the forums are not like the wiki the threads get "buried" in the older pages


one thing we could do is add the scripts people write to the wiki (like many say in the threads but we don't seem to do)
I'm not sure if we "have to" ask them if they would let us but it would be nice
and maybe give credit

anyways for instance in the cubescipt part of the wiki it has the "ideas" but no real script that you can test
http://sandboxgamemaker.com/wiki/index. ... Cubescript

we should put the apple quest, mainly because its a quest that involves the two basic things,
talks, and picking up items.

just some thoughts, I'm a pretty smart teen, if I have a hard time understanding it there is a good chances others will to.

Re: Beter scripting soruce?

Posted: October 19th, 2010, 8:18 pm
by chocolatepie33
well, I guess I could start working on the ultimate simple Cubescripting guide soon... You should join the wiki.

Re: Beter scripting soruce?

Posted: October 19th, 2010, 8:41 pm
by kentl
chocolatepie33 wrote:well, I guess I could start working on the ultimate simple Cubescripting guide soon... You should join the wiki.
Thats just a AWESOME name for a guide ;)

I just might join the wiki.

Re: Beter scripting soruce?

Posted: October 19th, 2010, 8:44 pm
by chocolatepie33
I've already started it; it's under text tutorials -> scripting, last one.

Re: Beter scripting soruce?

Posted: October 19th, 2010, 10:09 pm
by kentl
chocolatepie33 wrote:I've already started it; it's under text tutorials -> scripting, last one.
It looks great but by far the best part

"Created by Chocolatepie33 (aka CP) with assistance from Kentl"

:ugeek:


anyways that is what I was wanted to see :D




unlike the other ones it seems to be more kid\new guy friendly which is what i think we should aim for

Re: Beter scripting soruce?

Posted: October 19th, 2010, 10:11 pm
by chocolatepie33
sorry, it's actually under NPCs, there is no scripting part, it's gonna be multiple parts though, it's gonna be big... :shock:

Re: Beter scripting soruce?

Posted: October 20th, 2010, 4:31 pm
by arcones
Here are some good sites for learning:
Link to multiple tutorials
List of scripting commands
GUI Menu Commands

Leo and I worked on the last site, Venima the second. I found multiple tutorials and they are in the first link.
They all are very simple and instructive, have fun!

Arcones

Re: Beter scripting soruce?

Posted: October 20th, 2010, 5:03 pm
by chocolatepie33
alright, thanks Arc, I'll try to integrate these into the tutorial.

EDIT: Does ANYONE know if/how values can be carried from map to map? This knowledge would be VERY useful for the tutorial. If you know, please answer here, or here: viewtopic.php?f=15&t=1871