Want to learn to zscript.
#1
Posted 26 May 2008 - 05:22 PM
Thanks, Son.
#2
Posted 26 May 2008 - 06:19 PM
- start with easy stuff
- when you want to know how to do things, look at other scripts, or ask. I'll write big spiels on how things work if you like =P
- think of something to script, rather than just thinking 'I want to script'
- be specific when you ask for help, otherwise you won't get any
Edited by Joe123, 26 May 2008 - 06:19 PM.
#3
Posted 27 May 2008 - 01:04 AM
then work your way up. cutscenes would be the easiest, i would say to script.
i remember my first attempt at a script... damn eyeballs... *shudder*
i was stubborn and tried to do a big fancy custom boss... AND IT ATE MY SOUL AND LEFT NOTHING BUT THIS SHELL OF A BODY!!!
seriously. start with something within your ability. for your sake.
#4
Posted 27 May 2008 - 01:12 AM
#5
Posted 27 May 2008 - 03:55 AM
'I want to learn ZScript' and 'I want to learn how to add a script into my game' are two very different things =P
http://www.purezc.co...showtopic=33916
That thread should help.
His custom boss was supposed to be a bit like that one in aLttP with lots of eyeballs that slide around and attack you, I think it might've been called Wart. ¬_¬.
#6
Posted 27 May 2008 - 06:09 AM
#7
Posted 27 May 2008 - 09:10 AM
Have a look at another script and you'll see.
each script starts with:
void run(){
Where 'scripttype' is either ffc, item or global, and 'scriptname' can be anything you like.
void run() has to be called in every script, otherwise it won't do anything.
Most script will then have a while loop after that to make them run every frame, although obviously that's not the case with all scripts.
A generic ffc script structure could look a bit like this:
void run(){ //open void run()
while(true){ //open while(true) loop, which will loop forever
//code goes here
Waitframe(); //Waitframe(); means the loop will occur once per frame
} //close while loop
} //close void run()
} //close script
Edited by Joe123, 27 May 2008 - 09:11 AM.
#8
Posted 27 May 2008 - 02:38 PM
Cutscenes are easy? How would you set a 'very' simple one up? I'm in need of some cutscenes...
#9
Posted 27 May 2008 - 02:41 PM
#10
Posted 27 May 2008 - 02:45 PM
Just a little one I thought up.
#11
Posted 27 May 2008 - 04:40 PM
And you don't really need to script it either.
But you can if you want to.
#12
Posted 27 May 2008 - 05:07 PM
and cycling... but yeah
and it was the eyesore, joe. but its ok. its dead now. i abandoned that project because it was too much for me to do as my first script
#13
Posted 27 May 2008 - 05:08 PM
Freeform combos moving.
Would probably be nicer if you scripted it though.
Less screens used.
And yeah, Eyesore =P
Heh, he was pretty awful.
#14
Posted 27 May 2008 - 06:30 PM
#15
Posted 27 May 2008 - 06:37 PM
Not too complex really...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users

