[store_unit] unit.description vs unit.user_description
Moderator: Forum Moderators
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.
[store_unit] unit.description vs unit.user_description
unit.user_description is the units name. However, I cannot determine what unit.description actually is or does when modified.
-
- Retired Developer
- Posts: 2633
- Joined: March 22nd, 2004, 11:22 pm
- Location: An Earl's Roadstead
Re: [store_unit] unit.description vs unit.user_description
user_description is what the user sees. Description is what the computer sees. The player can change the user_description whenever they want. If that is done, WML can still filter on description to have specific events happen, or target it with the AI.governor wrote:unit.user_description is the units name. However, I cannot determine what unit.description actually is or does when modified.
"you can already do that with WML"
Fight Creeeping Biggerism!
http://www.wesnoth.org/forum/viewtopic. ... 760#131760
http://www.wesnoth.org/forum/viewtopic. ... 1358#11358