#Variable oTextBox.text_x_offset(100081, 0) not set before reading it.

1 messages · Page 1 of 1 (latest)

zealous thunder
#

its a dialogue thing that worked fine, but then i added something in the dialogue script (a script only to define what the characters will say) that is an array to check if you talked with a person to have another dialogue. heres the error:

___________________________________________
############################################################################################
ERROR in
action number 1
of Draw Event
for object oTextBox:

Variable oTextBox.text_x_offset(100081, 0) not set before reading it.
 at gml_Object_oTextBox_Draw_0 (line 169) - var _text_x = textbox_x + text_x_offset[page];
############################################################################################
gml_Object_oTextBox_Draw_0 (line 169)```

ill send  oTextBox draw event and what i did into the dialogue script in another separate messages
#

how the dialogue script looked before modifying:

switch(_text_id)
{
  case "signpost entrance":
    //all the text
}

how it looks now:

switch(_text_id)
{
    case "sign entrance":
    switch global.quests[? "SignCaptcha"]
    {
    case 0: // talking for the first time
        //the text
        case 1: //already talked
#

it just gives me the crash when i jump from another case to other like this

#

like this