Comments (4)
Imo dsu should be removed in favor of a something like a simplified planning mode. which would the basicially bahave/look like dsu does currently, (no arrows, only simgle turn, commit all moves on attack) but actually uses planning mode mechanics under the hood, see also
from wesnoth.
I think option 1 is on the right track for how this should be handled, but I'm not sure how feasible it is to actually store a reference to an event. Storing an event's ID is definitely possible, but not all events have an ID.
Just accepting that the second_unit might be empty sometimes is not good. The fallback speaker idea doesn't seem great either.
from wesnoth.
Sorry, I meant storing a reference to the second_unit of said event, so it could be filled in for speaker later.
from wesnoth.
That definitely sounds viable, yes. I think you'd have to account for a possibility that the unit doesn't actually exist anymore by the time the event fires – while I think that's probably not possible with normal gameplay, it would definitely be possible if some event removes it from the map. So it may be necessary to store a copy of the second_unit rather than a reference to it.
from wesnoth.
Related Issues (20)
- editor: Save into addon when saving a scenario HOT 6
- editor: Pick proper dir and filename in Save Map/Scenario As dialog HOT 10
- EI: Baneblade Item's Weapon Has a Hidden "Always Use On Defence" Effect That Should be Included in its Description HOT 2
- URL hitboxes on centered text are left-aligned HOT 1
- WFL referencing unit variables strange number manipulation HOT 3
- Make elevation terrain invisible on the minimap
- Images placed with `[item]` remain on the map when resetting a replay HOT 2
- Exception caught too late when opening a help page with invalid utf8 HOT 1
- Campaignd should tell UMC authors to rename MyAwesomeAddon HOT 4
- [object] can carry garbage data to next scenario HOT 6
- Deprecate [filter_weapon] in weapon special unit filters HOT 8
- Weapon special filters can be affected by the weapon special leading to infinite recursion HOT 4
- Disscussion on Title Screen Background ideas HOT 6
- In MP games with Plan Mod enabled Undo doesn't work for the first action of a turn even if no fog/shroud update
- Class invariants of attack_type and attack_type::specials_context_t HOT 3
- wesnoth.sync.evaluate_single HOT 5
- Improve wesnoth.interface.select_unit()
- API missing from emmylua HOT 1
- Single-unit attribute to prevent dismissing from recall list
- Ability to override victory/defeat message HOT 1
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.