Jump to content

Question to fj_info_point_strref: assign custom string to info point


jastey

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...