Jump to content

Recommended Posts

Posted

For some weird reason, a state in the script won't work.

The sdfs are still at 0 when you get to that spot.

Code:
beginoutdoorscript;variables;body;beginstate INIT_STATE; break; beginstate START_STATE; break;beginstate 10; if ((get_flag(20,10) > 0) && (get_flag(20,11) > 0)) {message_dialog("As you walk, two watch towers see you and light fires.","This can't be good."); set_flag(20,10,2); set_flag(20,11,2); } break; 
Posted
Quote:
The sdfs are still at 0 when you get to that spot.


Well, that would be the reason; your if statement requires that both flags be greater than zero for any of the other statements to be executed. It sounds like to need to rewrite the condition to mean what you want it to.
Posted
Code:
beginoutdoorscript; variables;body;beginstate INIT_STATE; break; beginstate START_STATE; break;beginstate 10; if ((get_flag(20,10) == 0) && (get_flag(20,11) == 0)) {message_dialog("As you walk, two watch towers see you and light fires.","This can't be good."); set_flag(20,10,2); set_flag(20,11,2); } break; 

It still doesn't work.
Posted

Doesn't work how? Are you sure you know the values of those two flags? Right before the if, put in:

Code:
print_num(get_flag(20,10));print_num(get_flag(20,11));

so that you can find out what the values of those two flags really are.

 

Posted

I think I see the problem.

The state isn't even activating.

 

However, the state exists, the script exists, and I have, in the outdoor details, what the script is.

 

This can't be right.

 

Edit - I'm so stupid. Apparently the game only loads the outdoor script at the beginning of the scenario or when you first enter that section. Entering a town and exiting did not cause it to reload.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...