Help! Scripting is complicated!

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: Help! Scripting is complicated!
Canned
Member # 8014
Profile #0
I tried scripting, but the instructions make little sense. Could someone help me? :( :confused:

--------------------
I can transform into almost anything, though not sanity.

Of course it would be quicker if you were a mod and were able to do the linking yourself -Micawber
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Infiltrator
Member # 148
Profile #1
Can you be more specific?

--------------------
My ego is bigger than yours.
Posts: 480 | Registered: Thursday, October 11 2001 07:00
Canned
Member # 8014
Profile #2
I mean scripting with the Editor, to make Scenarios.
I am talking about a less complicated and easier 'walkthrough' or somthing like that.

--------------------
I can transform into almost anything, though not sanity.

Of course it would be quicker if you were a mod and were able to do the linking yourself -Micawber
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Infiltrator
Member # 148
Profile #3
3 basic sections:

begin
variables
body

The body contains states. Each state is called as programmed or by design (see editor for placing specials).

Example:
beginstate 12;
if (get_flag(0,0) == 250)
end();
message_dialog("You arrive at the sleepy farming village of Willow. Actually, sleepy isn't the right way to put it. Exhausted seems a much better word. Tired serfs mechanically farm rows of rich crops, as guards watch them carefully.",
"After the richness of Selathni, Willow comes as a bit of a shock. Most of the people here are hungry and beaten down.");
set_flag(0,0,250);
break;
The state is #12 as shown by beginstate 12;The state ends with break;It begins with an if to check the value of flag 0,0. If the value of 0,0 is 250 then end() is called.

Following that is a series of messages to be displayed to the character and setting of flag 0,0 to the value of 250.

--------------------
My ego is bigger than yours.
Posts: 480 | Registered: Thursday, October 11 2001 07:00
Canned
Member # 8014
Profile #4
Thanks, mabe you should make an entire walkthrough with details and examples. :)
That would help a lot of people! :D

--------------------
I can transform into almost anything, though not sanity.

Of course it would be quicker if you were a mod and were able to do the linking yourself -Micawber
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Councilor
Member # 6600
Profile Homepage #5
There is. Erik Westra's BoA Cookbook, hosted by Kelandon.

Dikiyoba.
Posts: 4346 | Registered: Friday, December 23 2005 08:00
Canned
Member # 8014
Profile #6
Sweet! :)

--------------------
I can transform into almost anything, though not sanity.

Of course it would be quicker if you were a mod and were able to do the linking yourself -Micawber
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Off With Their Heads
Member # 4045
Profile Homepage #7
You might want to page through the rest of my site, too. There's some other helpful stuff there.

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
Law Bringer
Member # 4153
Profile Homepage #8
And of course, most of us here are willing to help if you've got specific questions about scripting, and most of us are pretty approachable on AIM and such.

--------------------
Gamble with Gaea, and she eats your dice.

I hate undead. I really, really, really, really hate undead. With a passion.
Posts: 4130 | Registered: Friday, March 26 2004 08:00
Lifecrafter
Member # 6700
Profile Homepage #9
One could also suggest that once you have a handle on what commands are supposed to do, you play through the original scenarios and then read their scripts. It's rather amazing how much you can learn by seeing the script behind the gameplay.

--------------------
The Silent Assassin once scripted a snowball fight.
The other team ad-libbed too much.

--------------------
-Lenar Labs
What's Your Destiny?

Ushmushmeifa: Lenar's power is almighty and ineffable.

All hail lord Noric, god of... well, something important, I'm sure.
Posts: 735 | Registered: Monday, January 16 2006 08:00
Lifecrafter
Member # 6193
Profile Homepage #10
Read the documents thoroughly, as well as Westra's cookbook. Once you know enough to actually read a script and get something useful out of it, start opening up simple scenario scripts (Death at Chapman's is nice since Westra put notes all over the place. As are the prepackaged scenarios just because they aren't too flashy)

Oh, and did I just peer pressure this guy into designing? Hoo-rah!

--------------------
Guaranteed to blow your mind.

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00
Guardian
Member # 6670
Profile Homepage #11
Basic Scripting for Complete Beginners by Kelandon.

Also see the Designer's FAQ, also by Kel.

--------------------
Elan: Hey Roy, did you know that Vaarsuvius is a half-camel?
Roy: Is there anything I can say to that question that will end this conversation quicker?
Elan: Not really.
(OotS #87)
Posts: 1509 | Registered: Tuesday, January 10 2006 08:00
Apprentice
Member # 7796
Profile #12
Scripting is SO not complicated.
Posts: 35 | Registered: Sunday, December 17 2006 08:00
Canned
Member # 8014
Profile #13
Just think of yourself when you first started scripting/learning.

--------------------
I can transform into almost anything, though not sanity.

Of course it would be quicker if you were a mod and were able to do the linking yourself -Micawber
Posts: 1799 | Registered: Sunday, February 4 2007 08:00
Lifecrafter
Member # 6193
Profile Homepage #14
TM was born a scripter! Or at least he learned it so long ago that a time when he didn't know scripting is only a dim memory of the distant past. :P

Scripting is tough to learn-- if you have no previous programming knowledge (like I didn't) However, once you know what the hell you're doing it's a short jump to being genuinely good at it. The problem is getting to the point where you know what the hell you're doing.

--------------------
Guaranteed to blow your mind.

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00
Apprentice
Member # 7796
Profile #15
Dude, even the Desp review said that SS had unusually good scripting considering how awful the entire scenario was. :P
Posts: 35 | Registered: Sunday, December 17 2006 08:00
...b10010b...
Member # 869
Profile Homepage #16
Except for the runes that do 99 damage and congratulate you for completing the scenario.

Oh, and also the fact that BoE has nodes, not scripts.

^_^

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Apprentice
Member # 7796
Profile #17
quote:
Originally written by TM:

Dude, even the Desp review said that SS had unusually good scripting considering how awful the entire scenario was. :P

Posts: 35 | Registered: Sunday, December 17 2006 08:00