Tips

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: Tips
Apprentice
Member # 4649
Profile #0
I am going to make a senareo - I would like some biginer tips PLEASE.

--------------------
~Welcome to Lord Varadream~
Posts: 6 | Registered: Friday, July 2 2004 07:00
Agent
Member # 1104
Profile Homepage #1
Read the F...riendly Manual. Do you have anything specific you want to know about?

--------------------
Austrian Alex
Posts: 1307 | Registered: Tuesday, May 7 2002 07:00
Off With Their Heads
Member # 4045
Profile Homepage #2
Also read the articles in the Scenario Workshop. Take them all with a grain of salt, but they are useful in order to get you thinking.

EDIT: here, because it is rather hard to find.

[ Friday, July 02, 2004 09:21: Message edited by: Imbandon ]

--------------------
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
Agent
Member # 4506
Profile Homepage #3
quote:
Originally written by Evil Arch-Archer-Mage Dan:

I am going to make a senareo - I would like some biginer tips PLEASE.
Have U read the manuals yet - they might be a good idea to read.
Posts: 1370 | Registered: Thursday, June 10 2004 07:00
Warrior
Member # 1451
Profile Homepage #4
quote:
Originally written by Evil Arch-Archer-Mage Dan:

I am going to make a senareo - I would like some biginer tips PLEASE.
Tell you what: if English is your first language I am strongly against your children learning it from you.

--------------------
I am pleased to make contact with your entities.
Posts: 123 | Registered: Sunday, July 7 2002 07:00
Warrior
Member # 4631
Profile #5
No, no, nio. Biginer iss a reel werd.

--------------------
"'I saw the duckling hatch and disappear.
Sadly I ask who may have taken it.'"
Posts: 67 | Registered: Monday, June 28 2004 07:00
Warrior
Member # 1451
Profile Homepage #6
Yeah, um..., sure, whatever you say.

...

Ah, forget it!

*The Spelling Goblin mauls Evil-Whatever.*

EDIT: As for the would-be scanario: you should seriously consider one suggested scenario contest.

[ Friday, July 02, 2004 12:28: Message edited by: Abu Dhabi ]

--------------------
I am pleased to make contact with your entities.
Posts: 123 | Registered: Sunday, July 7 2002 07:00
Shock Trooper
Member # 3276
Profile #7
Well, no semi colons after if statements, append txt at the end of the DOCUMENTS name so it loads, use BBEdit for line number counting, Use the end(); to stop scripts easily, like using
if (choice == 1) {// choice 1 (or 0 in the term) is leave.
message_dialog("blah,","");
end();
}
flip_terrain(?,?);
break;

is less time consuming then

if (choice == 1) {// choice 1 (or 0 in the term) is leave.
message_dialog("blah,","");
end();
}
if (choice == 2) {
your codes here.
It also makes it cleaner cause it does not have to use all the brackets. Like look at an exerpt from one of my scripts.
beginstate 16;
check_text_response_match("imdone");
text = got_text_match();
if (text == 0) {
set_state_continue(19);
end();
}
if (get_terrain(6,41) == 268) {
message_dialog("The panal glows. _The portal of command imdone is now closed_","");
set_terrain(6,41,0);
end();
}
message_dialog("The panal glows._Ok. Portal Open. Please go to the top of the huge stairway near the south entrance","");
set_terrain(6,41,268);
break;
What happens is it first checks to see if the text is wrong then contines if it is to the next state (for me at least) to see if the code is right for something else. Then it checks to see if the portal is open, and closes it. If it is not open and the correct sequence is put in, the portal opens. The order you put the codes in is hard to explain, just try using set_state_continue with end();
To explain it, do all the stuff that would end the script first with ifs and brackets, then do stuff that should happen that dont end the scripts. Good Luck ;)
Posts: 249 | Registered: Saturday, July 26 2003 07:00
Infiltrator
Member # 154
Profile #8
Try adhering to the following coding standards:

IF statements should look like:
if (expr) {
code

if (expr) {
code
}
}
Calls to functions with multiple parameters should have a single space after the seperating comma:do_something(1, 2);If using co-ordinates (SDF or map) in your function calls, you may find the following syntax cleaner:set_flag(5,1 ,1);In this case, the SDF is spaced from the rest of the parameters and the space after the first , is omitted.

--------------------
Apparently still annoying.
Posts: 612 | Registered: Saturday, October 13 2001 07:00
Apprentice
Member # 4649
Profile #9
Thanks and please egnore my spealling.

~Arch-Archer-Mages RULE - Prests STINK ~

--------------------
~Welcome to Lord Varadream~
Posts: 6 | Registered: Friday, July 2 2004 07:00
Shock Trooper
Member # 4445
Profile #10
Uh, speaking of spelling, I've never heard of a "panal," GIFTSare2d2, you might want to fix that because it's your scenario and all.
Posts: 293 | Registered: Saturday, May 29 2004 07:00
Shock Trooper
Member # 3276
Profile #11
quote:
Originally written by Prophet_of_Doom:

Uh, speaking of spelling, I've never heard of a "panal," GIFTSare2d2, you might want to fix that because it's your scenario and all.
I change spelling and grammer once scripting is done. And I am NOT changing the spelling for this particular word. In my world, panel is panal. This kind of thing, 'uniqueifies' the scen.
Heck, I might make a small scen for my friend (not the public) where everything is Klingon ;) .
Posts: 249 | Registered: Saturday, July 26 2003 07:00