Adding a feature for [alternate_profile]
Moderator: Forum Moderators
Forum rules
Before posting a new idea, you must read the following:
Before posting a new idea, you must read the following:
- hermestrismi
- Posts: 632
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Adding a feature for [alternate_profile]
When a developer have multiple profiles for the same character, I think it will be a good idea to add an 'option' to change the profile if some conditions are met (like a filter for time of day or any other usual unit or side filter ) instead (or with the option) of adding them manually to the message tag.
Like:
Like:
Code: Select all
[alternative_portrait]
[filter_condition]
[variable]
name=lisar_encounter
equals=done
[/variable]
[/filter_condition]
profile=...
duration=turn
[/alternative_portrait]
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
Re: Adding a feature for [alternate_profile]
You can redefine wesnoth.wml_actions.message to check for [alternative_portrait] from unit variables for example.
Maintainer of Ageless Era. Ravana's Multiplayer Works
- hermestrismi
- Posts: 632
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: Adding a feature for [alternate_profile]
I didn't know that was possible by Lua functions.
Although, I tried to make a time to learn Lua coding, I m still a beginner at it and I imagine that if there is a pre-defined tag for such option, many addons' developers will found it quite useful.
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin