I have a variables serialised as follows:
In theory, I would be adding to the data.enchantments table at any time. I want to have an alias (recharge) that send, in psuedocode;
I am trying to make an alias to recharge a list of random enchanted jewlery from a given cube, but I want to set it up such that it can be another plugin for people to use. I could not think of a way to do this via script functions and an alias, so I decided to use a serialised variable instead.
The syntax for the in game command is;
So recharge would have to send the command for each thing in the data.enchantments table, for whatever given person has...
I guess this is 2 questions in essence...
1) How do we interface with a serialised variable, to use the information in an alias?
2) Is there a 'better' (or more plugin/user friendly) way to achieve this goal, aside from a serialised plugin?
Yours,
Mimi
data = {}
data.enchantments = {}
data.enchantments.perfection = 108386
data.enchantments.kingdom = 55407
data.enchantments.mercy = 114946
data.cube = {}
data.cube.cube = 67697
In theory, I would be adding to the data.enchantments table at any time. I want to have an alias (recharge) that send, in psuedocode;
recharge first thing in data.enchantments (in this case 108386) from cube# (in this case 68697)
I am trying to make an alias to recharge a list of random enchanted jewlery from a given cube, but I want to set it up such that it can be another plugin for people to use. I could not think of a way to do this via script functions and an alias, so I decided to use a serialised variable instead.
The syntax for the in game command is;
Syntax: RECHARGE <item> FROM <cube>So recharge would have to send the command for each thing in the data.enchantments table, for whatever given person has...
I guess this is 2 questions in essence...
1) How do we interface with a serialised variable, to use the information in an alias?
2) Is there a 'better' (or more plugin/user friendly) way to achieve this goal, aside from a serialised plugin?
Yours,
Mimi