[store_unit_defense] not supported?

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
Choicerer
Posts: 100
Joined: April 29th, 2017, 11:37 pm

[store_unit_defense] not supported?

Post by Choicerer » December 28th, 2017, 3:50 pm

How is [store_unit_defense] not supported? I can't see any version requirements in the wiki description. Am I doing something wrong?
Creator of Choicerer's Map Randomizer - goo.gl/VQDxYL The Better Names Mod -goo.gl/4vPbQ2
Curse of Satan Claus -goo.gl/BPEvSY The Trolling Mod - goo.gl/Df8vbH
Randomized Isar Map Pack and the Mushroom Isar.

User avatar
James_The_Invisible
Posts: 427
Joined: October 28th, 2012, 1:58 pm
Location: Somewhere in the Northlands, fighting dark forces

Re: [store_unit_defense] not supported?

Post by James_The_Invisible » December 28th, 2017, 4:25 pm

This tag was added in 1.13.9. Whoever added it to wiki, forgot to mention it. Fixed it.
My content: For Power series
Ports: Danse Macabre Story of the Wose
Royal Guard/Silver Mage

Choicerer
Posts: 100
Joined: April 29th, 2017, 11:37 pm

Re: [store_unit_defense] not supported?

Post by Choicerer » December 28th, 2017, 4:32 pm

Okay, so just to make sure - there is no way to know a unit's defence in Stable Wesnoth other than storing the terrain type under it and then writing a long function to pick the correct defence from the list?
Creator of Choicerer's Map Randomizer - goo.gl/VQDxYL The Better Names Mod -goo.gl/4vPbQ2
Curse of Satan Claus -goo.gl/BPEvSY The Trolling Mod - goo.gl/Df8vbH
Randomized Isar Map Pack and the Mushroom Isar.

User avatar
James_The_Invisible
Posts: 427
Joined: October 28th, 2012, 1:58 pm
Location: Somewhere in the Northlands, fighting dark forces

Re: [store_unit_defense] not supported?

Post by James_The_Invisible » December 28th, 2017, 4:38 pm

It is implemented in Lua: https://github.com/wesnoth/wesnoth/comm ... 664118b43c so probably you can make it work on Wesnoth 1.12 (without recompiling I mean).
Last edited by James_The_Invisible on December 28th, 2017, 4:57 pm, edited 1 time in total.
My content: For Power series
Ports: Danse Macabre Story of the Wose
Royal Guard/Silver Mage

Choicerer
Posts: 100
Joined: April 29th, 2017, 11:37 pm

Re: [store_unit_defense] not supported?

Post by Choicerer » December 28th, 2017, 4:39 pm

Thanks!
Creator of Choicerer's Map Randomizer - goo.gl/VQDxYL The Better Names Mod -goo.gl/4vPbQ2
Curse of Satan Claus -goo.gl/BPEvSY The Trolling Mod - goo.gl/Df8vbH
Randomized Isar Map Pack and the Mushroom Isar.

Post Reply