Monsters teams and behaviours and antimonsters superposition

Got something on your mind about the project? This is the correct place for that.


Forum rules

This forum is for feature requests, content changes additions, anything not a Bug in the software.
Please report all bugs on the Support Forums

Lecter
Novice
Novice
Posts: 59
Joined: 24 Jun 2008, 22:58

Monsters teams and behaviours and antimonsters superposition

Post by Lecter »

I saw that the game already implement some monsters behaviours, but I would liketo see more advanced behaviours like wolves attacking fluffies.
Monster teams could also make stuff like battles, imagine being stuck between 2 warring factions, that would be insteresting.

I also find a bit illogical that 12 monsters can stand on the same tile...
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Monsters teams and behaviours and antimonsters superposition

Post by Crush »

The new server software already has monsters blocking each others paths and monsters can damage each other but they don't do so intentionally but only when another monster gets in the way.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Lecter
Novice
Novice
Posts: 59
Joined: 24 Jun 2008, 22:58

Re: Monsters teams and behaviours and antimonsters superposition

Post by Lecter »

That doesnt complete this feature.

May I suggest creating an property to monsters
Behaviour, behaviour is an object that consist of a set of actions that a monster do depending on conditions and priorities. Like for an orc_shaman if there is an injured monster of one of the following types: orc_warrior, orc_archer, orc_shaman without being healed(when it heal the monser get status healing) his priority would be healing this one over attacking an enemy.

You could do diferent type of predators that would have different attack priorities.
Having a behaviour type is a way to emulate monster teams and groups.
Gonzalo
Peon
Peon
Posts: 41
Joined: 12 Oct 2005, 13:54
Contact:

Re: Monsters teams and behaviours and antimonsters superposition

Post by Gonzalo »

I have seen this on Lineage 2, and it adds some nice interaction to the game.
They took it one step ahead also, and some monsters would heal or otherwise help players also, if they're "allied" with them.

Code: Select all

System.out.println("Java Developer");
echo 'Powered by Debian GNU/Linux'
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Monsters teams and behaviours and antimonsters superposition

Post by Crush »

Lecter wrote:May I suggest creating an property to monsters
Behaviour, behaviour is an object that consist of a set of actions that a monster do depending on conditions and priorities. Like for an orc_shaman if there is an injured monster of one of the following types: orc_warrior, orc_archer, orc_shaman without being healed(when it heal the monser get status healing) his priority would be healing this one over attacking an enemy.

You could do diferent type of predators that would have different attack priorities.
Having a behaviour type is a way to emulate monster teams and groups.
http://wiki.themanaworld.org/index.php/Monster_Database

Just to make sure you know what you are talking about.

I think this could be implemented by adding a bunch of <friend>MonsterID</friend> and <enemy>MonsterID</enemy> tags. Any damage dealt to "friend" monsters near the monster is cosidered the same as damage dealt to the monster directly and thus causes aggro. Any "enemy" monsters are treated like player characters.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Re: Monsters teams and behaviours and antimonsters superposition

Post by Rotonen »

This is quite needed and the solution proposed here seems to be simple enough while still covering all we need from this.
This message used to be meaningful.
Lecter
Novice
Novice
Posts: 59
Joined: 24 Jun 2008, 22:58

Re: Monsters teams and behaviours and antimonsters superposition

Post by Lecter »

k, so we cant make a script cause it would take time loading, I though of a script based,

I though that instead of doing a list of aggressive = false, coward = false ,...
we could simply do basicBehaviour= aggressive1, or aggressive2, those being short list of characteristics,

then a short common script of behaviour can analyse this for all monsters
like
object behaviour aggressive1
if condition do condition
else if ...else if... (doing a list of conditions/actions with priorities) with around 5 behaviour objects you can do all monsters, and it wouldnt be long to load if its 5 for all, perhaps add some for bosses, its inspire of FFxii gambit system, but here u get like 5 pre made behaviours.

Monsters allied to each other could identify themselves through behaviour type making it quickly to standadize all monsters behaviours between them.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Monsters teams and behaviours and antimonsters superposition

Post by Crush »

I would rather prefer the current solution of defining the behavior individually for each monster because it allows a much higher grade of variation.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Lecter
Novice
Novice
Posts: 59
Joined: 24 Jun 2008, 22:58

Re: Monsters teams and behaviours and antimonsters superposition

Post by Lecter »

The current code I saw was about 4 lines... with 2 true/false boxes of aggressive/coward
You can make 4 behaviours for that, and the code to manage coward/aggressive and all that stuff must be elsewhere, meaning that you must a a global behaviour script full of if.

Anyway I'm just talking to put behaviours into separate premade scripts, instead of one big, this structure make monsters with behaviours not worth of having their own script, able to be more complexe, this feature can still be implemented while keeping the current system, but code will be harder to read thats all. You can always call a general script with variables like bo9olean coward and boolean aggressive, but I find it more easy to read if u make 2^n different behaviour scripts rather than one being called with a long list of n boolean variables, you would need to add all the bonus scripting in if in the big behaviour script anyway, making it even less readable, also putting monster behaviour property allow us to cathegorize monsters in hierarchy groups making it simplier to make predators hunt preys rather than making monster #12 attack monsters #1,2,3,4,5,6,7 in the code its more modular and easier to read.

Its equivalent to what u want, but its more modular and more readable. Those are the main diferences. Behaviours being premade scripts of monster actions, rather than a common huge scripts, it also have the advantage that you can make bosses's script behaviour already loaded, and not having to load it each time you create a monster, all monsters using static behaviour objects.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Monsters teams and behaviours and antimonsters superposition

Post by Crush »

You are obviously not familiar at all with TMWServ in general and the monster AI code in particular. Thus your comments are not really valuable.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Lecter
Novice
Novice
Posts: 59
Joined: 24 Jun 2008, 22:58

Re: Monsters teams and behaviours and antimonsters superposition

Post by Lecter »

Dont worry about it, "apprentice programmer", wont be long once I start reading its code.

I were just giving ideas for the code. Since from what I saw monsters only have behaviour characteristics, I then though the AI code would consist of a main function, am I right? All you need for diferent behaviour objects it to have different behaviour functions.
zick
Novice
Novice
Posts: 194
Joined: 21 Feb 2007, 03:30
Location: City Of Champions Again

Re: Monsters teams and behaviours and antimonsters superposition

Post by zick »

Another behavior that would be interesting to be seen would be the parent/child model. A child is protected by a parent (specifically a mother) and a mother is protected by a father. Also attacking a parent can cause a child to well up with rage and attack a player who attacks a parent.
User avatar
yosuhara
Knight
Knight
Posts: 583
Joined: 16 Mar 2006, 21:19
Location: Slovakia
Contact:

Re: Monsters teams and behaviours and antimonsters superposition

Post by yosuhara »

zick wrote:Another behavior that would be interesting to be seen would be the parent/child model. A child is protected by a parent (specifically a mother) and a mother is protected by a father. Also attacking a parent can cause a child to well up with rage and attack a player who attacks a parent.
or maybe child can flee while his parents fight the aggressor ...
Image
Image
Image
Booty
Novice
Novice
Posts: 51
Joined: 20 Apr 2008, 19:03

Re: Monsters teams and behaviours and antimonsters superposition

Post by Booty »

Lecter wrote:Dont worry about it, "apprentice programmer", wont be long once I start reading its code.

I were just giving ideas for the code. Since from what I saw monsters only have behaviour characteristics, I then though the AI code would consist of a main function, am I right? All you need for diferent behaviour objects it to have different behaviour functions.
This model is basically already seen with evil mushrooms. The fleeing while others attack is good. Maybe if the attacked monster flees to heals and recover and return would be good.
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Re: Monsters teams and behaviours and antimonsters superposition

Post by Rotonen »

Just make sure you give it a low chance of trying to flee. Fleeing monsters are annoying on the long run. With our current gameplay it could be really annoying.
This message used to be meaningful.
Post Reply