Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --#textdomain wesnoth-NX-RPG
- _ = wesnoth.textdomain "wesnoth-NX-RPG"
- function wesnoth.wlm_actions.inventory_item(cfg)
- local unit_id = wesnoth.get_variable("unit.id")
- local u_index = wesnoth.get_variable("inventory." .. unit_id .. ".length") + 1
- local merge_vars = unit_id .. u_index ..
- --helper.get_child("inventory." .. merge_vars .. , "command")
- wesnoth.set_variable("inventory." .. merge_vars .. ".name", cfg.name)
- wesnoth.set_variable("inventory." .. merge_vars .. ".id", cfg.id)
- wesnoth.set_variable("inventory." .. merge_vars .. ".image", cfg.image)
- wesnoth.set_variable("inventory." .. merge_vars .. ".status", cfg.status)
- end
Add Comment
Please, Sign In to add comment