Latest Posts

Topic: Neutral / wild enemies

blind3rdeye
Avatar
Topic Opener
Joined: 2020-03-26, 08:47
Posts: 77
Ranking
Likes to be here
Posted at: 2024-10-19, 05:31

I'm wondering how feasible it would be to implement enemies with traits something like the following

  • They spawn without need of any buildings or economy. (Possibly randomly in certain pre-defined areas, or in fog-of-war near player borders or whatever).
  • They attack nearby military buildings, and if successful they momentarily capture the building to push back player borders before razing the building.

I'm imaging something like what happens when you land an army from a warship, but spawned in some other way rather than landed from a ship; and not associated with any main player.


The reason I'm suggesting this is that I reckon in some maps it would be good to have a little bit of minor military pressure from non-players while building and exploring, in advance of full-scale war with actual players.

In particular, I find that I large maps I often basically ignore military training until I'm starting to get close to the enemy, then ramp up rapidly. It goes from basically zero military, to a full army of heroes, then an explosive short battle on the frontline, then it is basically over. I just wonder if it might more interesting with some stages along the way. I wonder if some small low-level threats from non-players might be interesting, just enough that expansion requires some conflicts in advance of more serious threats. I don't imagine including this in every map. Maybe it would only be for scripted special scenarios; or maybe as a game creation option.


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 2051
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2024-10-19, 09:47

I see the point, though I'm not comfortable with the idea of integrating such an artificially fighting-heavy feature directly in the main codebase. This could be done more or less as an add-on.

We could reuse the existing naval invasion code to let soldiers guard any arbitrary location, not just portspaces. We'd only need a new Lua function to allow creation and placement of invasion soldiers at a scripting-defined location, then this can all be scripted.

Making them independent from a player would be the hardest part. You'd instead have to designate one (AI or empty-AI) player for this. Although there have been other suggestions in the past around adding a player via scripting, this would be a lot harder to implement but if it can be got working it would open up a lot of new options for add-ons.


Top Quote
Ogg
Avatar
Joined: 2023-10-15, 22:41
Posts: 10
Ranking
Pry about Widelands
Posted at: 2024-10-20, 15:04

-

Edited: 2024-10-20, 20:40

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2542
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2024-10-20, 19:03

I think this is same category like natrual disaters or other suggestions like Realistic random events.

That would've been a fun extra challenge

I am not sure about that.

How can those beasts be defeated?


Top Quote
blind3rdeye
Avatar
Topic Opener
Joined: 2020-03-26, 08:47
Posts: 77
Ranking
Likes to be here
Posted at: 2024-10-23, 00:07

Ok, I think maybe Nordfriese is right. What I was saying did sound a bit artificially fighting heavy - and in most situations that doesn't really suit the style of gameplay. So I'm not sure. I still think my idea is well motivated, I reckon something along those lines would be good - but probably not quite what I described. I'll think about it some more and maybe have a better idea in a year or so! :p

Right now, I'm thinking that perhaps randomly spawning and attacking is a bit too much; but simply have neutral enemies passively guarding some parts of the map might be ok. I'm imaging something like the neutral enemies in Warcraft 3, which guard some key areas to prevent overly-rapid expansion. (In war3, there's more to it than that, because of xp and items etc, but I'm only really interested in their ability to guard parts of the map right now.) I guess that kind of guarding could be done already by just having a 'No AI' enemy with some military buildings pre-built in certain parts of the map. But somehow that doesn't quite meet what I'm looking for. I want it to look/feel a bit less formal than fighting a full tribe. Anyway, that's about all I've got right now.

(@kuputtnik, I'm not sure if you're comments are in response to the wild enemies idea or to something Ogg said and deleted. Probably the later, I suppose.)


Top Quote
tothxa
Avatar
Joined: 2021-03-24, 12:44
Posts: 481
OS: antix / Debian
Version: some new PR I'm testing
Ranking
Tribe Member
Posted at: 2024-10-23, 00:16

Well, there's a set of experimental add-ons by @aDiscoverer based on this topic: https://www.widelands.org/forum/topic/5795/ to add defenders to artifacts. (though I haven't tried them myself) I think that should be very close to what you've described.


Top Quote