![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jan 2006
Posts: 24
|
How I can make that a npc speaks when I want (at general chat)?
|
|
|
|
|
#2 | ||
|
Архивный участник
Join Date: Mar 2006
Posts: 57
|
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. |
||
|
|
|
|
#3 |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
You have to edit the AI for the NPC you want to "shout" also.
Oso |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jan 2006
Posts: 24
|
Tnx, I will try
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Sep 2005
Posts: 21
|
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. |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Feb 2006
Posts: 87
|
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 |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|