mob/proc/text_box(var/text,var/x1,var/x2,var/y1,var/y2)
// Width and Height spacing for displaying text.
var/WIDTH = 10
var/HEIGHT = 14
// Distance to offset characters inside of Text Box from edges
var/edge_offset_x = 16
var/edge_offset_y = -25
// CHAR_X is maximum characters left to right
// CHAR_Y is maximum lines of characters top to bottom
var/CHAR_X = ( ( (x2 - x1) * 32) - (edge_offset_x * 2) ) / WIDTH )
var/CHAR_Y = ( ( (y2 - y1) * 32) - (edge_offset_y * 2) ) / HEIGHT )
var/CURRENT_CHAR = 1
var/CURRENT_Y = 1
Problem description:
Text.dm:14:error: ): expected }
Text.dm:5:error: location of top-most unmatched {
Line 5 is var/WIDTH
Line 14 is var/CHAR_X
I have no idea why its giving me this error, I'm not using a { or } anywhere, and I believe all my parenthesis are correct.
But try adding another parenthesis at the front of CHAR_X and CHAR_Y: