Unit description query
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.
- Spannerbag
- Posts: 537
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Unit description query
Hi,
I'm working on my UMC and some units have modified resistances that differ from those in their
Whilst it could be done, I guess, via
Alternatively, would it be possible to use WML/lua to either:
a) overwrite the resistances in unit description with the actual values for the right-clicked unit, or
b) (maybe even better) add a column to the right of the resistance values that shows the corresponding values for the unit?
Of course, if I've missed something obvious, please enlighten me!
Why am I avoiding
Just a weird personal hang-up I guess...
If this isn't worth doing or is too difficult no worries, just thought I'd ask
Cheers!
--Spannerbag
I'm working on my UMC and some units have modified resistances that differ from those in their
unit_type
so when the player right clicks and views the unit description, the information reported is not correct.Whilst it could be done, I guess, via
[set_menu_item]
, I was wondering if there was any way to create a dummy ability or trait that when clicked and the description is displayed, will report the current resistance values for this unit?Alternatively, would it be possible to use WML/lua to either:
a) overwrite the resistances in unit description with the actual values for the right-clicked unit, or
b) (maybe even better) add a column to the right of the resistance values that shows the corresponding values for the unit?
Of course, if I've missed something obvious, please enlighten me!
Why am I avoiding
[set_menu_item]
? I just prefer, whenever possible, to use as limited a palette as possible of interface options.Just a weird personal hang-up I guess...
If this isn't worth doing or is too difficult no worries, just thought I'd ask
Cheers!
--Spannerbag
Re: Unit description query
Maybe creating your own [movetype] file would solve this. look at data/core/units.cfg for further information.
Re: Unit description query
It is unit type description, not unit description.
Unit values you can see by hovering on sidebar.
Unit values you can see by hovering on sidebar.
- Spannerbag
- Posts: 537
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: Unit description query
Thanks for the suggestion - but am now sorted thanks to Ravana (again)
But as always, thanks for taking the time/trouble to reply, it's appreciated!
Cheers!
--Spannerbag
- Spannerbag
- Posts: 537
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: Unit description query
Many thanks - that's exactly what I wanted
Heh, been playing for some time now - can't believe I missed that...
Anyway, thanks again, one more to do ticked off the list
Cheers!
--Spannerbag