jastey Posted January 3, 2014 Share Posted January 3, 2014 This is what I thought would work: LAUNCH_PATCH_FUNCTION ~fj_are_structure~ INT_VAR fj_type = 1 //info fj_box_left = 373 fj_box_top = 307 fj_box_right = 478 fj_box_bottom = 436 fj_cursor_idx = 22 //"?" fj_vertex_0 = 373 + (307 << 16) fj_vertex_1 = 478 + (307 << 16) fj_vertex_2 = 478 + (436 << 16) fj_vertex_3 = 373 + (436 << 16) STR_VAR fj_structure_type = region fj_name = C#q13inf fj_info_point_strref = ~The sarcophagus contains the preserved corpse of a young woman. Someone took great effort in lining the interior of the sarcophagus with silk cushions.~ END BUT_ONLY Unfortunately, the fj_info_point_strref gives the error message "cannot convert fj_info_point_strref or %fj_info_point_strref% to an integer". I am sure it's just a syntax thing I am unaware of (fj_info_point_strref). Would someone be so kind and post the code how I would assign a cutsom strref to the info point? Link to comment
Wisp Posted January 3, 2014 Share Posted January 3, 2014 fj_info_point_strref is an INT_VAR, not a STR_VAR. INT_VAR fj_info_point_strref = RESOLVE_STR_REF ~your text here~ Link to comment
jastey Posted January 3, 2014 Author Share Posted January 3, 2014 Ah! Thank you for pointing that out. I feel stupid. Link to comment
jastey Posted January 4, 2014 Author Share Posted January 4, 2014 Unfortunately, this gives a GLR parse error for the text in ~~: LAUNCH_PATCH_FUNCTION ~fj_are_structure~ INT_VAR fj_type = 1 //info fj_box_left = 373 fj_box_top = 307 fj_box_right = 478 fj_box_bottom = 436 fj_cursor_idx = 22 //"?" fj_vertex_0 = 373 + (307 << 16) fj_vertex_1 = 478 + (307 << 16) fj_vertex_2 = 478 + (436 << 16) fj_vertex_3 = 373 + (436 << 16) fj_info_point_strref = RESOLVE_STR_REF ~The sarcophagus serves as the final resting place of a young woman. Someone took great effort in lining the interior of the sarcophagus with silk cushions.~ STR_VAR fj_structure_type = region fj_name = C#q13inf END BUT_ONLY Link to comment
argent77 Posted January 4, 2014 Share Posted January 4, 2014 Try putting parentheses around the string. Link to comment
Avenger Posted January 4, 2014 Share Posted January 4, 2014 It's weird why Wisp's solution wouldn't work If argent's doesn't work either, another untried idea would be to make the strref int earlier. Something like this: tmpstr = RESOLVE_STR_REF ~The sarcophagus serves as the final resting place of a young woman. Someone took great effort in lining the interior of the sarcophagus with silk cushions.~ LAUNCH_PATCH_FUNCTION ~fj_are_structure~[/font][/color] INT_VAR ... fj_info_point_strref = %tmpstr% ... Link to comment
Wisp Posted January 4, 2014 Share Posted January 4, 2014 Right, sorry. The syntax includes parentheses. Link to comment
jastey Posted January 4, 2014 Author Share Posted January 4, 2014 That did the trick! Thank you very much! EDIT: I missed your post, Avenger. The text in parenthesis solved the problem for me, (tested in game). Nevertheless, thank you for your suggestion, I am sure it will come in handy at other places (if I manage to apply it correctly). Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.