Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
Probably setting the AI to 'Guard'.
Re: Ask a simple question, get a simple answer
BrainComponent:pursuit() just finds a path to the party and makes the first move or turn along that path. I don't know what you're trying to do with the spell, but I seriously doubt BrainComponent:pursuit() is what you want.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
edit: removed script
There is an easier way than the monsterAction I posted... Just set the AI to default if it was set to guard.
**Or did I miss something about your post... Is it not [just?] about getting the viper_root to attack?
There is an easier way than the monsterAction I posted... Just set the AI to default if it was set to guard.
**Or did I miss something about your post... Is it not [just?] about getting the viper_root to attack?
Last edited by Isaac on Tue Nov 15, 2016 10:30 pm, edited 9 times in total.
- AndakRainor
- Posts: 674
- Joined: Thu Nov 20, 2014 5:18 pm
Re: Ask a simple question, get a simple answer
The same behavior as when a monster is damaged by a champion with a projectile and a tiledamager. Drain life bolt has no tiledamager component. What you say about pursuit being one step only is odd, so far using pursuit has always made other monsters continue to follow the party. But maybe the first step has always been enough for the monster to detect the party.
Last edited by AndakRainor on Tue Nov 15, 2016 10:31 pm, edited 1 time in total.
Re: Ask a simple question, get a simple answer
Ah. Quite a bit happens when a monster is damaged, and absolutely none of it is BrainComponent:pursuit(), I'm afraid.
- Their AI becomes a little more aggressive for 10 game seconds as measured by Time.currentTime()
- They call the MonsterComponent.onBloodied hook if their health fell below 0.25 from the damage
- They check morale and maybe flee
- Their AI becomes a little more aggressive for 10 game seconds as measured by Time.currentTime()
- They call the MonsterComponent.onBloodied hook if their health fell below 0.25 from the damage
- They check morale and maybe flee
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
- AndakRainor
- Posts: 674
- Joined: Thu Nov 20, 2014 5:18 pm
Re: Ask a simple question, get a simple answer
@Minmay: also MonsterComponent:setAIState("default") when damaged I suppose?
@Isaac: yes, and I think it is better to fix the spell definition than modifying monsters definitions. It will keep the spell pack easier to share
@Isaac: yes, and I think it is better to fix the spell definition than modifying monsters definitions. It will keep the spell pack easier to share
Re: Ask a simple question, get a simple answer
Effectively, yes.AndakRainor wrote:@Minmay: also MonsterComponent:setAIState("default") when damaged I suppose?
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
Just quickly - while on the topic of Viper Roots chasing the party - I will link to CainOrdamoth's thread:
viewtopic.php?f=22&t=14541
where Zimber defines a Viper Root that can chase the party across elevations
viewtopic.php?f=22&t=14541
where Zimber defines a Viper Root that can chase the party across elevations
Labyrinth of Lies (viewtopic.php?f=14&t=4400)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Re: Ask a simple question, get a simple answer
Is there such a thing as an inside heightmap / height elevation. I mean how do you define it say for instance the mine tileset?
Re: Ask a simple question, get a simple answer
It can be done, but most of the tile-sets (I think all of them) have problems connecting seamlesly in places influenced by the heightmap. This usually leaves holes that would need patched with custom placed [if not custom designed] mesh models, to hide the mismatching seams.kelly1111 wrote:Is there such a thing as an inside heightmap / height elevation. I mean how do you define it say for instance the mine tileset?
Even the forest tile set has this problem where elevation ledges exist in the influence of a heightmap.