What overrides the text id in prototype files?

Digital_Utopia

First time out of the vault
Modder
I mean - for most critters/NPCs etc, each one referenced in a map, has a proto PID that references a prototype file, which, in turn, contains the index to the entry in pro-crit.msg, where you get the name, and the description.

However, in some cases - like, say, President Richardson, his pro file has the msg id of 9400 - which is "Up Class Citizen (M)", yet there's an entry for "President" (id 29300). I just can't seem to find the missing link to tie the two together. Anybody have any ideas?
 
In the description / look_at_p_proc you can override the assigned name from the scrname.msg file.

Normal critter reads from proto -> attach a script and it reads from scrname.msg (if the line is not empty) -> use script to manually override the name. Keep in mind that the dialog review button in the dialog interface will always show the scrname.msg entry, because description/look at obviously doesn't cover this.
 
In the description / look_at_p_proc you can override the assigned name from the scrname.msg file.

Normal critter reads from proto -> attach a script and it reads from scrname.msg (if the line is not empty) -> use script to manually override the name. Keep in mind that the dialog review button in the dialog interface will always show the scrname.msg entry, because description/look at obviously doesn't cover this.

Thanks, but I still can't seem to find where the appropriate index to scrname.msg is. President Richardson's scrname.msg index is 903 -
Code:
{903}{}{President Richardson}           # qhPrzRch.int    ; Enclave President Richardson talking head.

yet, that index doesn't appear in the compiled script (qrPrzRch.int), the source (qPrzRch.ssl) or in the map object itself.
 
Thanks, but I still can't seem to find where the appropriate index to scrname.msg is. President Richardson's scrname.msg index is 903 -
Code:
{903}{}{President Richardson}           # qhPrzRch.int    ; Enclave President Richardson talking head.

yet, that index doesn't appear in the compiled script (qrPrzRch.int), the source (qPrzRch.ssl) or in the map object itself.

The president script is (qhprzrch.int).
 
In the scrname.msg located in text.. game.

NAME SCRIPT
903 President Richardson qhprzrch.int

DESCRIPTION
Enclave President Richardson talking Head.

I'm sorry, perhaps I wasn't clear.

I need to find out where index 903 in scrname.msg is referenced. I see that entry, which is why I posted it. But I have nothing in the game files, that actually points me to that index.

Upon reviewing qhprzrch.ssl, I see references to the descriptions - indexes 100-102 in qhprzch.msg, but nothing to scrname.msg.

Or, to further simplify the issue, this is how it normally goes.

Map object -> ProPID -> Critters.lst (/proto/critters) -> .pro file -> textID -> pro_crit.msg -> name

in this case, however, as his name is obviously not "UP Class Citizen (M)", and I apparently need to get the real name from scrname.msg, it's like this.

Map object -> ScriptID -> Script.lst -> qhprzrch.int -> ?????? -> scrname ID -> scrname.msg -> name
 
Last edited:
I'm sorry, perhaps I wasn't clear.

I need to find out where index 903 in scrname.msg is referenced. I see that entry, which is why I posted it. But I have nothing in the game files, that actually points me to that index.

Upon reviewing qhprzrch.ssl, I see references to the descriptions - indexes 100-102 in qhprzch.msg, but nothing to scrname.msg.

Or, to further simplify the issue, this is how it normally goes.

Map object -> ProPID -> Critters.lst (/proto/critters) -> .pro file -> textID -> pro_crit.msg -> name

in this case, however, as his name is obviously not "UP Class Citizen (M)", and I apparently need to get the real name from scrname.msg, it's like this.

Map object -> ScriptID -> Script.lst -> qhprzrch.int -> ?????? -> scrname ID -> scrname.msg -> name

His real name is President( President Richardson Enclave) ,there are Up class citizen(m)(fred - The Den when you give him the money and he win or NCR that guy near Tandi) , Vice President(vice president bird in enclave) , Bartender(bartenders) , AHS-9(hubology chief)
 
Last edited:
I need to find out where index 903 in scrname.msg is referenced. I see that entry, which is why I posted it. But I have nothing in the game files, that actually points me to that index.

It's an engine thing. Scrname (script name) goes by script ID, which is the line number in scripts.lst or just look up the script in the header file.
 
Once a script is given to a critter in-mapper, it changes it's name according to the scrname.msg file. The entry # suppose to be the (script#) + 100.

Vice president Bird actually has its own proto, but it is not used. Instead, Up class citizen is used as proto. Since a script was attached to it, and its # on critter.lst is 854, he's scrname.msg # will be 854+100=954.
"
{954}{}{Vice President Bird} # QCBird.int ; Enclave, Vice President Bird
"
 
It's an engine thing. Scrname (script name) goes by script ID, which is the line number in scripts.lst or just look up the script in the header file.

Y'know, I was hoping for a direct reference, but on a whim, I started comparing the ScriptIDs to the scrname.msg indices. Checked Richardson, Byrd. and the secretary- even a guard, and sure enough - they all had a difference of 101 between the two.

Small sample size, true- but since scrname.msg starts at index 101, I think I'm gonna run with it. Thanks again for your help!
 
Once a script is given to a critter in-mapper, it changes it's name according to the scrname.msg file. The entry # suppose to be the (script#) + 100.

Vice president Bird actually has its own proto, but it is not used. Instead, Up class citizen is used as proto. Since a script was attached to it, and its # on critter.lst is 854, he's scrname.msg # will be 854+100=954.
"
{954}{}{Vice President Bird} # QCBird.int ; Enclave, Vice President Bird
"
Thanks! - I finally figured it out myself- but it's awesome to get confirmation on that.
 
Back
Top