Consider for a moment the following example:
/*: * @plugindesc Allows you to add a new currency or set of currencies to the game * such currencies can include things like "clay pot" or "silver coin" they are then * used in shops. * @author Adam Balan (AKA: DarknessFalls) * * @param ---Currency Translation--- * * @param Label For Menu * @desc The name the player will see in the menu. * Default: Currency * @default Currency * * @param Currently Have * @desc the label for "currently have" in the list of currencies. * Default: Currently have: * @default Currently have: */
Now the way I have been getting the user input for plugin params is:
var FlareCurrencyPluginParamters = PluginManager.parameters('Flare-Currency');When I console.log the object, I get information back, things seem to relatively work until I go and do this:
[IMG]http://i.imgur.com/iuqTVVa.png[/IMG]
Now this would be fine. Accept when I run the game I have the default set at, as we see from the above, Currency.
I thought default meant .... well ....default. As in, if you have nothing, we use what you said is default. Accept when I run the game and have Label For Menu set to Currency, great the object shows text, how ever when I delete the text and run the game the Label For Menu is ""
Uh .... This seems wrong, especially when default is set??? This is a bug across all my scripts.
Any idea, maybe the comments are wrong? I dunno ...
/*: * @plugindesc Allows you to add a new currency or set of currencies to the game * such currencies can include things like "clay pot" or "silver coin" they are then * used in shops. * @author Adam Balan (AKA: DarknessFalls) * * @param ---Currency Translation--- * * @param Label For Menu * @desc The name the player will see in the menu. * Default: Currency * @default Currency * * @param Currently Have * @desc the label for "currently have" in the list of currencies. * Default: Currently have: * @default Currently have: */
Now the way I have been getting the user input for plugin params is:
var FlareCurrencyPluginParamters = PluginManager.parameters('Flare-Currency');When I console.log the object, I get information back, things seem to relatively work until I go and do this:
[IMG]http://i.imgur.com/iuqTVVa.png[/IMG]
Now this would be fine. Accept when I run the game I have the default set at, as we see from the above, Currency.
I thought default meant .... well ....default. As in, if you have nothing, we use what you said is default. Accept when I run the game and have Label For Menu set to Currency, great the object shows text, how ever when I delete the text and run the game the Label For Menu is ""
Uh .... This seems wrong, especially when default is set??? This is a bug across all my scripts.
Any idea, maybe the comments are wrong? I dunno ...