Sokomine
|
be9dfbf1dd
|
show correct dialog when the player uses an older formspec version; note: does not cover editing
|
2021-07-11 18:13:45 +02:00 |
|
Sokomine
|
c3c7b7e2da
|
added yl_speak_up.get_npc_users_of_variable and modified saving of npc data so that the necessary data is stored
|
2021-07-05 19:31:29 +02:00 |
|
Sokomine
|
577ea356aa
|
actually apply alternate_text texts
|
2021-07-01 23:14:33 +02:00 |
|
Sokomine
|
17544df2a1
|
added new function yl_speak_up.prepare_new_dialog_for_option so that the dialog result/effect is present when first editing a new dialog
|
2021-07-01 03:24:52 +02:00 |
|
Sokomine
|
61bd16f3f2
|
made edit option menu slightly nicer
|
2021-06-29 20:26:25 +02:00 |
|
Sokomine
|
01af5d1365
|
added custrom_functions_you_can_override.lua
|
2021-06-29 00:44:00 +02:00 |
|
Sokomine
|
703770794e
|
added added save button to main dialog
|
2021-06-28 01:27:50 +02:00 |
|
Sokomine
|
2544fdc0c9
|
fixed broken tooltip
|
2021-06-27 17:19:32 +02:00 |
|
Sokomine
|
661caaff4e
|
removed yl_speak_up.save_changes_and_switch_to_other_dialog; handled now by show_fs.lua and the new fs_save_or_discard_or_back.lua
|
2021-06-27 04:33:14 +02:00 |
|
Sokomine
|
1b28dd6a07
|
load_dialog is no longer a local function
|
2021-06-27 03:46:03 +02:00 |
|
Sokomine
|
6ad92fb198
|
ask for save when selecting edit options dialog
|
2021-06-25 18:33:41 +02:00 |
|
|
b3c8889b95
|
reduce number of gsub calls for text variable substitutions
Use lua feature that allows to specify table with substitutions to
string.gsub()
|
2021-06-23 02:44:01 +03:00 |
|
Sokomine
|
228faed97d
|
shorter sentence for show me your inventory
|
2021-06-21 19:54:23 +02:00 |
|
Sokomine
|
7534482e20
|
make the arrows in the dialog edit menu work again
|
2021-06-21 18:58:53 +02:00 |
|
Sokomine
|
f7470a7bb1
|
made function get_number_from_id accessible
|
2021-06-21 18:22:37 +02:00 |
|
Sokomine
|
9ed4cfc92d
|
added yl_speak_up.execute_next_action and general action handling
|
2021-06-18 04:36:59 +02:00 |
|
Sokomine
|
dc69b71a33
|
show actions correctly when editing dialogs
|
2021-06-15 19:14:40 +02:00 |
|
Sokomine
|
2ace5da2c9
|
bugfix in sort_keys for actions
|
2021-06-14 23:18:31 +02:00 |
|
Sokomine
|
d3d90134ee
|
yl_speak_up.execute_all_relevant_effects
|
2021-06-11 00:20:40 +02:00 |
|
Sokomine
|
312b9a49df
|
renamed eval_precondition_function to eval_and_execute_function, moved to fs_edit_general.lua and used for results as well
|
2021-06-10 18:06:21 +02:00 |
|
Sokomine
|
86701d5325
|
sort keys numericly, i.e. p_2 before p_10
|
2021-06-09 18:51:55 +02:00 |
|
Sokomine
|
b0f141b09d
|
moved code from calculate_displayable_options to yl_speak_up.eval_precondition_function; added yl_speak_up.eval_all_preconditions; added yl_speak_up.eval_precondition
|
2021-06-07 19:54:46 +02:00 |
|
Sokomine
|
a482f8664c
|
find_next_id is no longer local
|
2021-06-06 23:30:03 +02:00 |
|
Sokomine
|
91788f8713
|
fixed crash
|
2021-06-06 00:20:51 +02:00 |
|
Sokomine
|
830b18c2aa
|
create trades table soon enough
|
2021-06-06 00:19:25 +02:00 |
|
Sokomine
|
79a7184a7e
|
made staff work again (was broken)
|
2021-06-04 20:48:13 +02:00 |
|
Sokomine
|
cfe6f83ad4
|
added function yl_speak_up.sort_keys
|
2021-06-03 18:07:03 +02:00 |
|
Sokomine
|
5877cd11c6
|
some additional comments; in general chat_send_message has mostly been replaced by formspecs now
|
2021-06-03 01:16:23 +02:00 |
|
Sokomine
|
7e3911b949
|
show trades as (A)ction in edit mode
|
2021-06-02 23:41:11 +02:00 |
|
Sokomine
|
30db4209e2
|
moved relevant functions into fs_initial_config.lua
|
2021-06-02 21:43:11 +02:00 |
|
Sokomine
|
5c9b633546
|
moved fs_edit_options_dialog.lua functions into extra file
|
2021-06-02 19:19:57 +02:00 |
|
Sokomine
|
b491ec46de
|
moved general formspec functions to show_fs.lua
|
2021-06-02 19:10:58 +02:00 |
|
Sokomine
|
a62b898020
|
allow to toggle between trades attached to dialog options and those in the trade list
|
2021-06-02 01:29:16 +02:00 |
|
Sokomine
|
ae5107b1ea
|
added better hint as to where to add trades
|
2021-06-02 01:02:22 +02:00 |
|
Sokomine
|
a8c9321672
|
catch some error conditions
|
2021-06-02 00:56:46 +02:00 |
|
Sokomine
|
786ca77c7f
|
moved rest of minetest.show_formspec to yl_speak_up.show_fs
|
2021-05-31 22:34:01 +02:00 |
|
Sokomine
|
85bdf88ba9
|
moved optionsdialog to yl_speak_up.show_fs
|
2021-05-31 22:16:51 +02:00 |
|
Sokomine
|
a6a2b3f566
|
moved setdialog to yl_speak_up.show_fs
|
2021-05-31 22:09:42 +02:00 |
|
Sokomine
|
60d17124b6
|
moved edit_options_dialog to yl_speak_up.show_fs
|
2021-05-31 21:52:04 +02:00 |
|
Sokomine
|
cf145bb07d
|
moved talk to yl_speak_up.show_fs
|
2021-05-31 21:41:09 +02:00 |
|
Sokomine
|
4c9c66e7c1
|
moved frashion to yl_speak_up.show_fs
|
2021-05-31 21:35:50 +02:00 |
|
Sokomine
|
4095be4e43
|
added yl_speak_up.show_fs to combine almost all formspecs
|
2021-05-31 21:15:42 +02:00 |
|
Sokomine
|
caf72721b3
|
added yl_speak_up.show_fs_trade_list
|
2021-05-31 16:45:15 +02:00 |
|
Sokomine
|
bcf6a4062f
|
added yl_speak_up.show_fs_add_trade_simple
|
2021-05-31 16:32:24 +02:00 |
|
Sokomine
|
cb7c2214b4
|
added yl_speak_up.show_fs_trade_simple
|
2021-05-31 16:26:12 +02:00 |
|
Sokomine
|
71d4db6219
|
fixed bug with trade not showing up as Ef tag - added Tr tag if there are no effects
|
2021-05-31 00:07:45 +02:00 |
|
Sokomine
|
a9ddfb5a51
|
fixed bug on first click on add trade not working
|
2021-05-30 23:57:20 +02:00 |
|
Sokomine
|
3e97d69189
|
show what is traded in effects list window in edit option mode
|
2021-05-30 18:15:36 +02:00 |
|
Sokomine
|
75bfa4e555
|
actually show trades that are associated with dialogs and options
|
2021-05-30 17:09:03 +02:00 |
|
Sokomine
|
0c9d547401
|
added yl_speak_up.get_fs_add_trade_simple; trades are now always stored in dialog.trades instead of as results of options of dialogs
|
2021-05-30 01:43:46 +02:00 |
|
Sokomine
|
3184c89506
|
made save_dialog accessible
|
2021-05-29 19:15:45 +02:00 |
|
Sokomine
|
466a5e617f
|
added Let's trade button
|
2021-05-29 16:04:29 +02:00 |
|
Sokomine
|
d75b94c99d
|
added trade list
|
2021-05-29 03:55:36 +02:00 |
|
Sokomine
|
0652cf7f5a
|
removed unused variable
|
2021-05-28 22:00:07 +02:00 |
|
Sokomine
|
e38044c6ff
|
actually call the trade dialog
|
2021-05-23 23:24:47 +02:00 |
|
Sokomine
|
6fc01ab754
|
get_fs_talkdialog no longer local; call yl_speak_up.input_do_trade_simple; added yl_speak_up.get_result_id_by_type; made show/edit trade work
|
2021-05-23 21:41:54 +02:00 |
|
Sokomine
|
eecdfdcc00
|
added function yl_speak_up.add_new_result
|
2021-05-23 13:15:27 +02:00 |
|
Sokomine
|
870751aaab
|
added button in options edit menu for adding trades
|
2021-05-23 01:55:55 +02:00 |
|
Sokomine
|
53496c7369
|
added formspecs for simple trade
|
2021-05-22 19:49:09 +02:00 |
|
Sokomine
|
4c4992f985
|
fixed bug in initial configuration
|
2021-05-17 02:28:11 +02:00 |
|
Sokomine
|
0efa7f4f63
|
added inventory to npc which is stored to disk
|
2021-05-17 00:15:59 +02:00 |
|
Sokomine
|
ff6a3faca4
|
use just one register_on_player_receive_fields function - that also returns properly true instead of nil as before
|
2021-05-16 22:00:52 +02:00 |
|
Sokomine
|
8a685dc211
|
handled undeclared globals
|
2021-05-14 23:23:26 +02:00 |
|
Sokomine
|
fca1cf5251
|
changed initial text in order to demonstrate how the replacements work
|
2021-05-14 23:04:06 +02:00 |
|
Sokomine
|
d1e53e949f
|
removed special code for apple quest
|
2021-05-14 22:21:47 +02:00 |
|
Sokomine
|
cfb9987911
|
removed unused functions
|
2021-05-14 22:17:07 +02:00 |
|
Sokomine
|
1e1e4d8312
|
added security priv checks for staff functions
|
2021-05-14 22:15:37 +02:00 |
|
Sokomine
|
2096912134
|
added logging
|
2021-05-14 22:10:04 +02:00 |
|
Sokomine
|
26e3655c10
|
fixed bug with discarding new dialog
|
2021-05-14 14:55:42 +02:00 |
|
Sokomine
|
0184fe6337
|
added simple replacements for player name, npc name, owner name, time of day
|
2021-05-12 16:30:25 +02:00 |
|
Sokomine
|
771b980356
|
integrated function of the fashion button into menu
|
2021-05-11 19:57:18 +02:00 |
|
Sokomine
|
17b4ed455c
|
added npc_talk_master
|
2021-05-11 13:07:12 +02:00 |
|
Sokomine
|
c271a3480e
|
provide right id for talk check
|
2021-05-10 20:05:56 +02:00 |
|
Sokomine
|
c14fd79c48
|
determine npc_owner ealier so that talking to muted owned npc works
|
2021-05-10 19:58:56 +02:00 |
|
Sokomine
|
9b98d3fd21
|
allow to mute/unmute the npc via talking
|
2021-05-10 19:24:41 +02:00 |
|
Sokomine
|
052b6ab73f
|
added function yl_speak_up.may_edit_npc for checking players privs
|
2021-05-10 19:00:45 +02:00 |
|
Sokomine
|
ab1c8de031
|
prepared buttons for muting/unmuting npc
|
2021-05-10 18:55:14 +02:00 |
|
Sokomine
|
0c7f4a4db9
|
added yl_speak_up.update_nametag and yl_speak_up.set_muted for colored nametags depending on muted state
|
2021-05-10 14:34:47 +02:00 |
|
Sokomine
|
573753b80d
|
report multiple dialog results and refuse edit in such a disambigous case
|
2021-05-09 16:51:24 +02:00 |
|
Sokomine
|
fcebadf6c4
|
fixed crash
|
2021-05-08 22:32:45 +02:00 |
|
Sokomine
|
5db7b9c909
|
added limit for amount of option/answers per dialog
|
2021-05-08 21:06:27 +02:00 |
|
Sokomine
|
63653d4dbd
|
allow to delete empty dialogs
|
2021-05-08 20:46:27 +02:00 |
|
Sokomine
|
8a7a2a5d0b
|
allowed to change start dialog
|
2021-05-08 18:22:55 +02:00 |
|
Sokomine
|
b09b4e5bf5
|
improved sorting of dialog list by d_sort
|
2021-05-08 17:22:12 +02:00 |
|
Sokomine
|
e262e3fb9a
|
made yl_speak_up.get_sorted_options more flexible
|
2021-05-08 16:31:57 +02:00 |
|
Sokomine
|
e8ce4b1c23
|
made name and description editable after initial config
|
2021-05-08 16:00:45 +02:00 |
|
Sokomine
|
726a6cbcf2
|
made changelog better readable when asking for save/back/discard
|
2021-05-08 14:38:16 +02:00 |
|
Sokomine
|
a780a70d97
|
used formspec_escape wherever necessary
|
2021-05-08 14:35:57 +02:00 |
|
Sokomine
|
f1bd0cb8a0
|
ask for save/discard/back only when actually switching to a diffrent dialog
|
2021-05-06 19:22:17 +02:00 |
|
Sokomine
|
ca438dd71b
|
adding a new dialog no longer asks for save/discard/back
|
2021-05-06 18:50:21 +02:00 |
|
Sokomine
|
a7d9ab5eb2
|
support changes to o_sort
|
2021-05-05 20:42:35 +02:00 |
|
Sokomine
|
f88ef64f7f
|
made delete option work
|
2021-05-05 17:09:49 +02:00 |
|
Sokomine
|
2107b7833a
|
added yl_speak_up.get_sorted_options for sorting by o_sort; used for prev and next buttons in option edit menu
|
2021-05-05 16:39:17 +02:00 |
|
Sokomine
|
73d16ae76a
|
do not crash in case of error
|
2021-05-04 20:13:12 +02:00 |
|
Sokomine
|
d1ba5f1ce5
|
set nametag etc.
|
2021-05-04 19:20:44 +02:00 |
|
Sokomine
|
50591119c7
|
show who owns the npc; limit length of name and description to 40 characters
|
2021-05-04 19:14:52 +02:00 |
|
Sokomine
|
26ad9b3c5a
|
allow to setup the npc without a staff
|
2021-05-04 18:57:53 +02:00 |
|
Sokomine
|
846009470a
|
moved hide/grey out/alternate text and alternate text to yl_speak_up.edit_mode_apply_changes as well
|
2021-05-04 16:14:16 +02:00 |
|
Sokomine
|
dd1dee0fdc
|
let yl_speak_up.edit_mode_apply_changes handle all changes done by either dialog or option edit menu
|
2021-05-04 14:40:21 +02:00 |
|
Sokomine
|
a0c3a4c890
|
used helper variable n_id as abbreviation; reformatted code for changelog entries
|
2021-05-04 13:50:31 +02:00 |
|