David Cernat
21f431a25a
[General] Make uramer's attribute/skill changes backwards-compatible
...
Additionally, fix a typo in menuHelper.lua that was crashing the server on start-up.
2019-05-05 14:47:43 +03:00
David Cernat and GitHub
094db2d738
Merge pull request #67 from uramer/0.7.0damage
...
save and load damage skill/attribute values, refactor skill/attribute data storage
2019-05-05 14:13:09 +03:00
David Cernat
96595c116c
[General] Change ToDisk() & FromDisk() into ToDrive() & FromDrive()
2019-04-21 00:54:46 +03:00
David Cernat
3eedd96248
[General] Use the quicker saving method for most objects in most cases
...
As of now, only players and cells still use the slower saving method, and only when disconnecting or being fully unloaded respectively.
Additionally, rename the Save() and Load() methods into SaveToDisk() and LoadFromDisk() to reduce ambiguity and prevent them from being used all the time by new scripters.
2019-04-14 23:49:03 +03:00
uramer
0f8d113495
save and load damage skill/attribute values, refactor skill/attribute data storage
2019-03-21 21:40:16 +01:00
David Cernat
b0a77a64e6
[MenuHelper] Fix typo in requireAttribute() condition
2019-02-27 06:31:53 +02:00
David Cernat
f4ebc2b153
[MenuHelper] Make text optional in menus
2019-02-25 02:06:23 +02:00
David Cernat
2103ecd7dd
[MenuHelper] Adjust item removal logic so it matches InventoryHelper's
2019-01-16 08:51:47 +02:00
David Cernat
15c282c683
[MenuHelper] Add globalVariable
2018-12-27 14:21:19 +02:00
David Cernat
337d73e5ca
[MenuHelper] Add currentPlayerVariable
...
Deprecate currentPlayerDataVariable.
2018-12-27 07:09:42 +02:00
David Cernat
85b48711ba
[MenuHelper] Make it possible to use a variable array for captions
2018-12-17 15:10:49 +02:00
David Cernat
6c8fac8339
[MenuHelper] Allow nested player data variables to be used in menus
2018-12-16 13:19:58 +02:00
David Cernat
7d8320c3f3
[MenuHelper] Don't reuse tableElement as result in ProcessVariables
...
This helps clarify the logic for future additions there.
2018-12-16 12:18:37 +02:00
David Cernat
eb95b5640d
[MenuHelper] Make it possible to use a variable array for text
2018-12-16 11:21:22 +02:00
David Cernat
ccd8d34015
[MenuHelper] Add requirePlayerFunction condition
...
This allows you to use the return value of any function you add to BasePlayer as a menu condition.
2018-12-09 09:08:12 +02:00
David Cernat
9d596a00ac
[MenuHelper] Rename requireAdminRank into requireStaffRank
2018-10-14 11:52:54 +03:00
David Cernat
df7475df17
[MenuHelper] Add currentPlayerDataVariable and concatenation variables
2018-10-14 11:20:40 +03:00
David Cernat
cee882c376
[MenuHelper] Add chatName variable
2018-10-14 09:38:44 +03:00
David Cernat
88d7f47799
[General] Rename settings.admin into settings.staffRank for players
2018-08-27 16:02:02 +03:00
David Cernat
ed23c1a69f
[General] Use consistent capitalization for function names, part 2
2018-08-13 06:38:45 +03:00
David Cernat
a704dc01d7
[MenuHelper] Remove forgotten debug for variables
2018-07-21 04:39:15 +03:00
David Cernat
497731a9e0
[MenuHelper] Add missing arg unpacking to non-object global functions
2018-07-17 19:29:27 +03:00
David Cernat
2d221d6dc6
[MenuHelper] Add variable-processing with currentPid() as the first type
2018-07-17 05:09:44 +03:00
David Cernat
9c4a82aeeb
[MenuHelper] Fix arguments for targetObjects without metatables
...
This is an unreliable approach, but should work fine on all existing official scripts.
2018-07-17 04:00:08 +03:00
David Cernat
5fc4205208
[MenuHelper] Fix usage of unpack for effect function arguments
2018-07-17 03:51:41 +03:00
David Cernat
5c0a79564c
[MenuHelper] Add the ability to run global object functions
...
Also add the ability to run global functions that are not part of any objects.
The old runFunction() has been renamed into runPlayerFunction(). additionally, the old setDataVariable() has been renamed into setPlayerDataVariable().
2018-07-17 02:53:51 +03:00
David Cernat
f242304a98
[General] Fix remaining long lines
2018-07-11 03:40:49 +03:00
David Cernat
77f712100b
[MenuHelper] Rework MenuHelper by adding display conditions to buttons
2018-07-09 18:26:19 +03:00
David Cernat
5a4256c9e1
[MenuHelper] Turn checking of a condition table into its own function
2018-07-09 00:17:14 +03:00
David Cernat
60b5ea0089
[MenuHelper] Add new requireAdminRank condition
2018-07-09 00:14:54 +03:00
David Cernat
1efe8e8efd
[Utils] Add inventoryHelper.addItem() method and use it in menuHelper
2018-03-26 19:44:26 +03:00
David Cernat
f0e633376f
[MenuHelper] Allow multiple refIds for item requirements and removals
2018-03-09 18:43:26 +02:00
David Cernat
961c3e9616
[Config] Set custom menu IDs from config
2018-03-09 11:34:56 +02:00
David Cernat
22ce78a7cd
[General] Add new menuHelper class for handling custom menus
2018-03-08 07:06:24 +02:00