Talk:Info remarkable

From Valve Developer Community
Jump to: navigation, search

Custom Talker Scripts and Conversations

Is there any way to customize the talker scripts or create new ones that can be accessed by Hammer? I've made a copy of the talker scripts for the survivors and edited in sections that would correspond to an info_remarkable placed in my map using the existing scripts as a base. As an example, this is the addition I created for Ellis's talker script, placed right after the section for C5M5:

//--------------------------------------------------------------------------------------------------------------
// STAM_C2M1
//--------------------------------------------------------------------------------------------------------------
Response STAM_C2M1_IntroMechanic
{
	scene "scenes/Mechanic/WorldC1M1B65.vcd"  then any STAM_C2M1_IntroResp01 foo:0 0.01 //Shit! This way's blocked!
	scene "scenes/Mechanic/WorldC4M2B01.vcd"  then any STAM_C2M1_IntroResp01 foo:0 0.01 //Hey, we ain't goin' no farther on this road.
	scene "scenes/Mechanic/WorldC4M1B11.vcd"  then any STAM_C2M1_IntroResp02 foo:0 0.01 //Is it rainin? Never mind, it is.
	scene "scenes/Mechanic/WorldC4M1B13.vcd"  then any STAM_C2M1_IntroResp02 foo:0 0.01 //Aw what the hell? It's rainin'.
	scene "scenes/Mechanic/WorldC4M1B14.vcd"  then any STAM_C2M1_IntroResp02 foo:0 0.01 //Aw, shit, it's rainin'.
	scene "scenes/Mechanic/WorldC4M2B03.vcd"  then any STAM_C2M1_IntroResp02 foo:0 0.01 //This rain sure ain't lettin' up.
}
Rule STAM_C2M1_IntroMechanic
{
	criteria ConceptSTAM_C2M1_Intro IsMechanic AutoIsNotScavenge AutoIsNotSurvival
	Response STAM_C2M1_IntroMechanic
}

Response STAM_C2M1_IntroResp01Mechanic
{
	scene "scenes/Mechanic/MoveOn01.vcd"  //Let's go.
}
Rule STAM_C2M1_IntroResp01Mechanic
{
	criteria ConceptSTAM_C2M1_IntroResp01 IsMechanic AutoIsNotScavenge AutoIsNotSurvival
	Response STAM_C2M1_IntroResp01Mechanic
}

Response STAM_C2M1_IntroResp02Mechanic
{
	scene "scenes/Mechanic/MoveOn04.vcd"  //Hey man, we should get goin'.
	scene "scenes/Mechanic/MoveOn07.vcd"  //Hey, we should get goin', man.
}
Rule STAM_C2M1_IntroResp02Mechanic
{
	criteria ConceptSTAM_C2M1_IntroResp02 IsMechanic AutoIsNotScavenge AutoIsNotSurvival
	Response STAM_C2M1_IntroResp02Mechanic
}

Thing is, I'm not sure how one would actually implement the new script. You can't unpack and repack official files since Steam enforces consistency, right? My second thought would be to maybe create an addon, but I don't know if Hammer can access those.

Any help would be greatly appreciated! Arrowing (talk) 05:30, 21 April 2020 (UTC)