DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
214 stars 107 forks source link

problem with constants #975

Closed uledrith closed 9 years ago

uledrith commented 9 years ago

http://mcmonkey.org/haste/14229

... /ex narrate <s@msflowerfetch.constant[Flowersqty]> returns null

but /ex narrate <s@msflowerfetch.yaml_key[Flowersqty]> works (thanks Anthony!).

Not sure what changed, but this was working before, but not now.

mcmonkey4eva commented 9 years ago

You forgot default constants:

AnthonyAMC commented 9 years ago

Should also mention that what are now script.yaml_keys were under the default constants: node. He changed it so it would function for now.

uledrith commented 9 years ago

That's what I actually had at first, see this script, same problem. http://mcmonkey.org/haste/14228

mcmonkey4eva commented 9 years ago

debug of the default constants form please.

uledrith commented 9 years ago

debug http://mcmonkey.org/haste/14230

Morphan1 commented 9 years ago

I'm pretty sure this is fixed now. Use default constants: