Restoration Project and SFall script problems.

How can i programmatically get currently set F2 window mode (window/no window and resolution) set by f2_res_config (I mean the F2 Resolution Patch)?
 
Is there a way using sfall to get the proto (critter, item) name and description as a string? I know there is get_proto_data and get_object_data but if i write
Code:
val := get_proto_data(currObj, it_description);
or
Code:
val := get_object_data(currObj, it_description);
i get a number instead of a string!
 
"it_description" and other similar constants in define.h are only for vanilla proto_data function. They are NOT the offset for sfall's proto/object data functions.
 
obj_name() should get the proto name. Don't know about descriptions. It's possible to grab the strings from files in the /game/ folder, though, so it might be possible to do it that way. Don't remember the script commands for that right now, though, and can't check.
 
Back
Top