Outdoor script

AuthorTopic: Outdoor script
Lifecrafter
Member # 6193
Profile Homepage #0
For some reason my scenario won't run my outdoor encounters. If I trigger the state, the dialog thats supposed to show up doesn't show. I know its trying to call these states, and their in the right spot, because if i delete them from the outdoor script it shows an error message that i'm calling a non-existant state. They are very simple states, just a message, am I going insane?

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

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00
Infiltrator
Member # 5576
Profile Homepage #1
If the code is so simple, could you show it to us?

--------------------
Überraschung des Dosenöffners!
"On guard, you musty sofa!"
Posts: 627 | Registered: Monday, March 7 2005 08:00
Lifecrafter
Member # 6193
Profile Homepage #2
beginoutdoorscript; body; beginstate 10; message_dialog("Why won't this work.",""); break;
I won't boor you with the actual dialog, but this is how its set up.

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

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00
Agent
Member # 5814
Profile #3
No variables? C'mon, you gotta love variables.

Anyway, using tags can make scripts much sexier. For instance, your code goes from

beginoutdoorscript; body; beginstate 10; message_dialog("Why won't this work.",""); break;

to
beginoutdoorscript;

body;

beginstate 10;
message_dialog("Why won't this work.","");
break;


--------------------
quote:
Originally written by Kelandon
Well, I'm at least pretty

Posts: 1115 | Registered: Sunday, May 15 2005 07:00
Shock Trooper
Member # 5459
Profile Homepage #4
Is that really your entire outdoor script? Where's your INIT_STATE and START_STATE. Can't have an outdoor script without those fellers, no sir. Just add this after body;
beginstate INIT_STATE;
break;
beginstate START_STATE;
break;
Maybe that helps...

[ Thursday, August 25, 2005 06:00: Message edited by: Smoo ]

--------------------
These are my scenarios. I may have too much free time but I really don't care.
Backwater Calls, Magus of Cattalon, Rats Aplenty
Get them here
Visit The Lyceum for all your rating needs.
Posts: 211 | Registered: Sunday, January 30 2005 08:00
Lifecrafter
Member # 6193
Profile Homepage #5
Wow, I don't know why it didnt occur to me that if a town script needed them the outdoor did as well. Works now. I just don't know why it didn't give me error messages since they were missing.
Thanks.

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

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00