[DiscordArchive] If I want to use entries from creature_text to be said in a boss script, but the boss is not the one
[DiscordArchive] If I want to use entries from creature_text to be said in a boss script, but the boss is not the one
Archived author: Kitzunu • Posted: 2020-04-02T10:10:58.656000+00:00
Original source
If I want to use entries from creature_text to be said in a boss script, but the boss is not the one to say them but another creature.
How would I do that?
Archived author: stevej • Posted: 2020-04-02T11:40:12.485000+00:00
Original source
For some reason I don't know, the texts are in broadcast_text. Also, if you use the ->AI()->Talk() method for example, it is supposed to look for the dialogs at creature_text, but if you use the Talk() without the AI(), it would look for them at broadcast_text. For me it's easier, if the creature had the dialogs in creature_text, since they are under the Entry / ID of each NPC, at one time in fact, they were that way, but I don't know why they were moved to the other table really. I suppose there must be an explanation.
Archived author: Kitzunu • Posted: 2020-04-02T12:06:43.725000+00:00
Original source
For example in Mimiron script I find this
```cpp
case EVENT_COMPUTER_SAY_INITIATED:
if( Creature* computer = me->SummonCreature(NPC_COMPUTER, 2790.0f, 2569.44f, 364.31f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 1000) )
computer->AI()->Talk(TALK_COMPUTER_INITIATED);
events.PopEvent();
break;
```
How does this know that it should not take mimiron lines, but take lines from the "computer" and not mimiron?
Archived author: stevej • Posted: 2020-04-02T12:20:56.047000+00:00
Original source
This is supposed to be the dialogue ID that says: TALK_COMPUTER_INITIATED, but in creature_text. If I remember correctly, creature_text, has an attribute called broadcast_text. But I don't know what it would be like to have the same dialogue twice. Again, I don't know why creature_text was discontinued, but I think it was much more comfortable.
Archived author: Kitzunu • Posted: 2020-04-02T12:21:56.999000+00:00
Original source
broadcast_text just overrides if something is written in creature_text text