Comments (2)
I suggest making it a string, which can be shown if the player tries to dismiss them., Later in the campaign it could be set to the empty string to allow the player to dismiss the unit.
block_dismiss=_ "Only Sir Generic will be able to recognise the pirate captain"
from wesnoth.
What about both? Would also allow for situations where you want to give the player a warning message before dismissing the unit (despite unit's level or whether it's loyal). Situations like this:
[unit]
id=Apprentice
name= _ "Apprentice Mage"
level=0
block_dismiss=no # default
dismiss_prompt= _ "This apprentice represents the future of the Academy! Do you really want to dismiss him?"
[/unit]
as well as:
[unit]
id=Pirate
name= _ "Powder Boy"
level=0
block_dismiss=yes
dismiss_prompt= _ "Only Sir Generic will be able to recognize the pirate captain!"
[/unit]
from wesnoth.
Related Issues (20)
- multi_page::remove_page doesn't appear to account for page HOT 2
- Unique id for all weapons ([attack]) HOT 2
- 30% of CPU time is spent laying out tooltips that aren't shown HOT 2
- Search filter is case-insensitive only for ASCII characters HOT 16
- more events with same id, cannot [remove_event] HOT 10
- [BUG] Micro AI `recruit_random` Does not work anymore HOT 3
- Better logic for choosing the Monte Carlo simulation HOT 1
- SoF S7 Outriding the Outriders: Lua error at start HOT 4
- [attacks] weapon special unexpected behaviour HOT 3
- Use revised sprites for boats/ships HOT 2
- Update game manual HOT 3
- Add a link to the game manual in-game HOT 2
- WC: Adding trainers doesn't really work
- Steam Deck in-game keyboard pops up for no reason in certain menus HOT 4
- Better error message for ActionWML [unit] with invalid type HOT 5
- Better error message for ActionWML [allow_recruit] with invalid type HOT 1
- gui.add_widget_definition aborts when text_font_size is missing
- I cannot connect to extension servor HOT 7
- Splitting MP and SP unit stats HOT 19
- Reverting unit balance to a previous version HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wesnoth.