The Note field found in each item of the database can be used to define unique data used with each plugin.
<name:data>In this way, data which has been written in a fixed format will be automatically developed inside a "meta" variable by standard scripts.
In the case above, the following conditions will be met (objects will be treated as data).
object.meta.name === 'data'
<name:data>In this way, data which has been written in a fixed format will be automatically developed inside a "meta" variable by standard scripts.
In the case above, the following conditions will be met (objects will be treated as data).
object.meta.name === 'data'
For example, I added a <foo:bar> to a Enemy "Note".
I have said enemy in a variable called "battler".
console.log(battler.meta.foo);console.log(battler.meta);Both come up undefined.
Code:
No sign of a property called "meta" anywhere.console.log(battler)Code:
Obviously throw an error because battler.meta.foo is undefined.if (battler.meta.foo === 'bar')I've taken a look at the DataManager.extractMetadata function, and it seems to be correct.
So I'm not sure what I might be doing incorrectly. Any help is appreciated. Thanks!