outdoor_enc_result() problems

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: outdoor_enc_result() problems
Apprentice
Member # 5914
Profile #0
Hello guys, has anyone had trouble with this call?
I've tried it on both wandering and preset monsters with the party outdoor. It looked about that

State when met: 21

beginstate 21;
outdoor_enc_result(2); //the party doesn't have to fight, monsters disappear, will //reappear later
reset_dialog();
message_dialog("text I want to display","");
break;

I removed reset_dialog() but it did neither help nor hurt.
As for the result, the party had to fight and nothing was displayed.
So I tried to enter this 21 state both when the enc would be won and when it would be fled. But the game seemed to ignore any called states.

No messages about bugs in scripts and I've made sure they are all right.
Help please.
Posts: 13 | Registered: Tuesday, June 7 2005 07:00
Off With Their Heads
Member # 4045
Profile Homepage #1
I just tried it and got this call to work with a Preset Encounter.

The only thing I can think of is whether the state will get called without that outdoor_enc_result call in it. Try deleting that call and see if you get the message.

If not, make sure you've set the outdoor section's script in the Outdoor Details box.

--------------------
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 #2
I tried this in Undead Valley. I just could not get it to work. In the end I gave up the idea. If you do get it to work, tell me how, so I can put it in my next scenario!

- Archmagi Micael

--------------------
"You dare Trifle with Avernum?" ~ Erika the Archmage
--------------------
My Scenarios:
Undead Valley : A small Undead problem, what could possibly go wrong?
--------------------
Richard Black - PROOF of his existance (the Infernal one's website).
--------------------
MY FORUM! Randomosity at it's highest! :)
Posts: 1370 | Registered: Thursday, June 10 2004 07:00
Apprentice
Member # 5914
Profile #3
Shame on me :rolleyes:
I found out that my outdoor script was not right after all. It missed all those three very significant states, even if they are empty (start state, etc. etc.)
I started to inspect my outdoor script closely when I found out that the game didn't recognise this script at all, not just the outdoor_enc_result call.

it seems that you can put this call anywhere in the state as long as you want to avoid any if's in it
(so
message_dialog ("blah blah","");
outdoor_enc_result(whatever here);

will result probably the same way as reverse).

And I thought it was the guilt of corrupted editor zip I had...
Posts: 13 | Registered: Tuesday, June 7 2005 07:00