[DiscordArchive] Do you have the texts in the creature_text table?
[DiscordArchive] Do you have the texts in the creature_text table?
Archived author: stevej • Posted: 2020-04-02T12:22:50.898000+00:00
Original source
Do you have the texts in the creature_text table?
Archived author: stevej • Posted: 2020-04-02T12:41:09.120000+00:00
Original source
```c++
void CreatureAI::Talk(uint8 id, WorldObject const* whisperTarget /*= NULL*/)
{
sCreatureTextMgr->SendChat(me, id, whisperTarget);
}
void EnterCombat(Unit* /*who*/)
{
Talk(SAY_AGGRO);
me->setActive(true);
DoZoneInCombat();
instance->SetBossState(DATA_LORD_MARROWGAR, IN_PROGRESS);
}
```
Archived author: stevej • Posted: 2020-04-02T12:41:47.587000+00:00
Original source
For example, the icc boss, does not use AI()->Talk(), directly invoked to the Talk() method
Archived author: Kitzunu • Posted: 2020-04-02T12:41:57.307000+00:00
Original source
> Do you have the texts in the creature_text table?
<@!295970375571865600> yes
Archived author: stevej • Posted: 2020-04-02T12:42:50.540000+00:00
Original source
I'm sure it used to be used differently. But I don't know who or when or why it was changed. I suppose you have a reason.
Archived author: Kitzunu • Posted: 2020-04-02T12:48:16.058000+00:00
Original source
If I understand creature_text wiki correctly if we do
```cpp
enum Texts
{
SAY_AGGRO = 0,
};
void EnterCombat(Unit* victim) override
{
...
Talk(SAY_AGGRO); // interesting!
}
```
Then that 0 is = creature_text.GroupID
Archived author: Kitzunu • Posted: 2020-04-02T12:50:55.018000+00:00
Original source
Which I buy, but what I dont understand is if for example:
Say this is a LDW fight, and the cultists should say something.
How would I make sure that what the cultists say come from the cultists entries in creature_text