NovaRain
9f140cf3ca
Added a blinking icon to force_encounter/with_flags functions
...
* currently an icon is always shown for scripted force encounters.
2020-01-20 11:51:17 +08:00
NovaRain
6e6e01ea7f
Simplified the code of string_to_case function
...
Minor edits to some code and documents.
2020-01-17 21:56:12 +08:00
NovaRain
21004e3e63
Combined tolower/toupper in previous commit to "string_to_case"
2020-01-16 20:35:49 +08:00
NovaRain
d12db2be28
Added "tolower", "toupper" script functions
2020-01-16 09:46:27 +08:00
NovaRain
85a5ee2a52
Some edits to hookscripts.txt & function notes.txt
2019-12-24 00:57:16 +08:00
NovaRain
a9ad1a62eb
Tweaked the path to load global shaders in the previous commit
...
* although 3.8 doesn't have the path issue as 4.x due to the lack of
loading custom .dat, it's better to unify the path in this case.
Refactored the code for DataLoadOrderPatch in the same way as 4.x.
2019-12-15 10:31:50 +08:00
NovaRain
3b82232b46
Edited the description of the functions in the previous commit
...
Rewrote ASM code for tile_under_cursor script function.
2019-12-14 00:35:05 +08:00
NovaRain
5e704d206f
Added "objects_in_radius" and "tile_by_position" script functions
2019-12-13 10:56:15 +08:00
NovaRain
b4dac84ddd
Rewrote some script functions in ObjectsOps in C++
...
* remove_script, set/get_script, set_critter_burst_disable.
Changed the return value of get_script to 0 for unscripted objects.
2019-12-09 11:07:40 +08:00
NovaRain
7016690f99
Added "string_format" script function
...
Rewrote ASM code of opcode handlers in MemoryOp.hpp.
2019-12-03 10:52:56 +08:00
NovaRain
66c237d297
Refactored the code for "substr" script function
...
* fixed the crashing bug and added a new behavior.
Changed the error message due to missing critter frame (again):
* replaced the interruption with printing the error message to in-game
message window.
2019-11-29 12:13:36 +08:00
NovaRain
bbe9a2d26d
Added "get_text_width" and "string_compare" script functions
...
Rewrote set_dm/df_model, set_movie_path functions with WRAP_OPCODE.
2019-11-23 20:32:57 +08:00
NovaRain
3348d8b716
Backported "draw_image" and "draw_image_scaled" functions from 4.1
2019-11-19 20:51:22 +08:00
NovaRain
04ebbaa182
Added three new script window functions:
...
"show_window", "hide_window", "set_window_flag"
Updated documents.
2019-11-17 08:40:18 +08:00
NovaRain
3c5dc6853a
Added "get_sfall_arg_at" script function
...
Improved the functionality of "inventory_redraw" function.
2019-11-16 22:54:09 +08:00
NovaRain
a70a776e46
Tweaked/fixed reg_anim_callback function
2019-11-15 10:01:39 +08:00
NovaRain
83c3d6b1a8
Added "reg_anim_callback" script function(opcode)
...
Updated documents.
2019-11-14 13:02:10 +08:00
NovaRain
6a566087ca
Implemented executing timed_event_p_proc in sfall global scripts
...
Added "add_g_timer_event" and "remove_timer_event" script functions
for timed_event_p_proc in global scripts.
Fixed the check on the 'hidden' flag for previous commit.
2019-11-11 10:01:38 +08:00
NovaRain
ee711d8f81
Added "get_inven_ap_cost" script function
2019-11-02 10:26:28 +08:00
NovaRain
d26a06872a
Backported the advanced BarBoxes features from 4.x:
...
* Added BoxBarCount option.
* Added "set_iface_tag_text" and "add_iface_tag" script functions.
* Now number of simultaneously displayed boxes depends on game res.
* Updated documents.
2019-11-01 21:14:03 +08:00
NovaRain
3ef6056a77
Added "add_trait" script function
...
Replaced some C-style casting with pre-defined ptr_* variables.
2019-10-20 19:31:08 +08:00
NovaRain
37acec7115
Added "unwield_slot" script function
...
Re-fixed obj_art_fid for player's FID (commit 36523d8 )
2019-10-08 10:56:49 +08:00
NovaRain
5cfd5f99e3
Moved object unique id code from ScriptExtender to new Objects.cpp/h
...
Backported set_unjam_locks_time function from 4.0.
2019-10-07 09:36:46 +08:00
NovaRain
9693c0d439
Added "register_hook_proc_spec" script function
...
Updated documents to address the new function.
2019-09-12 22:23:02 +08:00
NovaRain
5ccd1534f4
Added "metarule_exist" script function.
...
Limited the maximum number of extra game msg files to 4096 (from 4.x).
Code edit to Message.cpp and ScriptUtils.hpp.
2019-06-14 23:32:01 +08:00