Jump to content

outdoor_enc_result() problems


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...