![]() |
[Request] NPC that speaks?
How I can make that a npc speaks when I want (at general chat)?
|
When you want I don't know, for boss that's the way (maybe you already know this):
npcdata: Quote:
Quote:
These are the messages he'll say: 1-When it respawns. 2-Every X time (when it's not been attacked). 3-When a player attacks it. 4-When it dies. So, for bosses, it's easy, add new fstrings and put them into the npc. |
You have to edit the AI for the NPC you want to "shout" also.
Oso |
Tnx, I will try :)
|
there 3 ways to do it
1.-by npc data u have to set some strings at strings file. 2.- By using Shout function. Shout ("blabla"); 3.- Say function. Say("BlaBla"); last two ones on ai. Use NASC to compile it. |
shift_sp 1
push_const 1000007 S269. "" push_string S269 S270. "" push_string S270 S271. "" push_string S271 S272. "" push_string S272 S273. "" push_string S273 func_call 89 // func[MakeFString] shift_sp -6 func_call 37 // func[Say] shift_sp -1 shift_sp -1 Change the String numbers so they are unique in your AI.obj. Replace 1000007 with the number for the string in fstring.txt |
| All times are GMT. The time now is 16:39. |