The Dink Network

Script Bug

August 15th 2003, 08:28 AM
farmer.gif
The game freezes when I change the interface to anything except dark blue (the default):

void main(void)
{
script_attach(1000);
wait(500);
stop_entire_game(1);

choice_start()
title_start();
"Interface Changer"
title_end();
"Gold"
"Dark Blue"
"Bright Green"
choice_end()
if (&result == 1)
{
init("load_sequence_now graphics\inter\bmenu\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\bstat\stat- 180 BLACK");
init("load_sequence_now graphics\inter\bnumbers\ns- 181 LEFTALIGN");
init("load_sequence_now graphics\inter\bnumbers\nr- 182 LEFTALIGN");
init("load_sequence_now graphics\inter\bnumbers\nb- 183 LEFTALIGN");
init("load_sequence_now graphics\inter\bnumbers\np- 184 LEFTALIGN");
init("load_sequence_now graphics\inter\bnumbers\ny- 185 LEFTALIGN");
}
if (&result == 2)
{

init("load_sequence_now graphics\inter\menu\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\status\stat- 180 BLACK");
init("load_sequence_now graphics\inter\numbers\ns- 181 LEFTALIGN");
init("load_sequence_now graphics\inter\numbers\nr- 182 LEFTALIGN");
init("load_sequence_now graphics\inter\numbers\nb- 183 LEFTALIGN");
init("load_sequence_now graphics\inter\numbers\np- 184 LEFTALIGN");
init("load_sequence_now graphics\inter\numbers\ny- 185 LEFTALIGN");
}

if (&result == 3)
{
nit("load_sequence_now graphics\inter\amenu\menu- 423 NOTANIM");
init("load_sequence_now graphics\inter\astatus\stat- 180 BLACK");
}

draw_status();
kill_this_task();
}
August 15th 2003, 09:53 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
Only thing I noticed is that one of the lines in your "Bright Green" configuration says nit(); instead of init(); - but that shouldn't crash anything really.