I am aware that file_open_read is not designed for this purpose, but I'm afraid such a function as file_exists doesn't exist. Plus, file_open_read works just fine. It returns a positive value when the file does exist and it returns 0 when it doesn't. So when it returns a positive value, which would mean that the file exists, it shows continue_pan.

The body of function gevecht() looks like this:

Code:
function gevecht()
{
	randomize();
	mouse_mode = 2;
	background_pan.flags = VISIBLE;
	in_battle = 1;
	choose_txt.flags = VISIBLE;
	character1_pan.flags = VISIBLE | OVERLAY;
	character2_pan.flags = VISIBLE | OVERLAY;
	character3_pan.flags = VISIBLE | OVERLAY;
}


Those three panels I show are buttons which lead to other functions, it's used for an RPG battle script.

But I am quite sure that there is nothing wrong with this function, I think the problem lies in the grass() action. Cause I've set a watch on battle_var to check it's value at all times. When I first load the level without using continue and then walk against the entity with the grass() action, I see the value changing continually until it equals 100, thus triggering gevecht(). But when I check the value after I use the Continue button (thus I have loaded the game using game_load) battle_var equals zero at all times, never to change it's value any more, as if the grass() action doesn't exist or apply to the entity.

The first error said: "Crash in Event", the second says "Crash in Continu". And now all of a sudden when I use Debug Run and click Continue, it actually loads my game sometimes, but the action still doesn't work.

The function continu() is called by clicking a button, only once and then the button disappears because it's flags are set to '0' with game_load.

Last edited by Secret_V; 01/10/09 22:49.