Comments (3)
Currently in fheroes2, both event and boat are "map objects", and there cannot be more than one object on the same tile at the same time (excluding the hero objects, because they are "special"). AI will not try to summon a boat here, because there is already an object on that tile. Logic for human players is a bit different (perhaps by mistake), and human players are allowed to summon a boat on that tile, but the result is that the boat object "overwrites" the event object, so there is no event object on that tile anymore after the boat summoning.
from fheroes2.
Ah, I see :( thanks for the explanation. Anyway, that is a good item to add to the "to-do" list since potentially it can break the logic of some old maps. Nowadays I'm not very familiar with fheroes2 code, but, perhaps, if the maps is a multidimensional array, then maybe we can convert that array to an array of lists or vectors and once the player steps into the tile - trigger everything that is under that tile
from fheroes2.
The fact that only one object can be placed on a tile at a time (even in the case of "invisible" objects, such as events) is the part of the core game mechanics. In the OG editor, you cannot place an event on a tile with the boat, and vice versa:
DOSBox.0.74-2.1.Cpu.speed_.max.100.cycles.Frameskip.0.Program_.EDITOR2.2024-06-14.19-04-27.mp4
Moreover, in the original game, the hero cannot disembark to a tile where an event object is located:
DOSBox.0.74-2.1.Cpu.speed_.max.100.cycles.Frameskip.0.Program_.HEROES2.2024-06-14.19-00-37.mp4
This is because the hero can only disembark on tiles where there is another "invisible" object called a "coast object", and you cannot have both the "event object" and "coast object" on the same tile at the same time. Therefore, I am inclined to believe that a human player simply should not be able to summon a boat to the tile on which the event object is located - just as AI cannot do it now.
from fheroes2.
Related Issues (20)
- Game, harmonize the positioning order of resource sprites in the game's various windows and screens
- Android mouse map movement move mouse to edges should scroll HOT 2
- [Scenario Editor] Graphics of the hero's secondary skills should be displayed in the hero's screen
- Surface Duo - keyboard input is laggy HOT 1
- 'Allow castle' is broken? HOT 1
- Game, Virtual Keyboard, allow left click and hold to repeat a character or action
- Game, Virtual Keyboard, add the right and left arrow keys to move the cursor position in the text field HOT 2
- [Scenario Editor] Hero's default troop graphics should be displayed with the possible range for the number of creatures HOT 3
- Adventure map, mouse cursor position after the action of selecting a hero with a left click held on the hero sprite HOT 2
- Adventure map, mouse cursor position after the action of casting the dimension door spell
- Adventure map, allow to delete the hero's predefined path on the adventure map regardless the state of the "Hero Movement" button
- Game, make a left click held on the hero's portrait change the hero's "sleep" state
- Web port HOT 2
- Accumulate gold condition is not working properly
- AI without castles with a strong army can't decide which castle to attack and loses
- Update Android API HOT 3
- Diacritical marks remains in mine selection in the editor.
- H2 HD v1.1.1 and 1.1.0 Price of Loyalty - mission 8 - differences I noticed HOT 3
- The description of AntiMagic is correct? HOT 8
- Polish translation of ALL for map selection is out of button area HOT 3
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 fheroes2.