Josan12 said:Hey! My thread!
Does anyone know a command that will set a critter to 'untalkable'?
To be precise - when i send critters to bed i don't want the player to be able to talk to them.
Maybe change_critter_flag or something?
There is a flag in the critter proto for this, however changing it on the fly isn't possible (?) or not worth it. The easiest thing you can do is this:
At the start of the talk_p_proc procedure for the critter add something like this:
Code:
if (asleep_var) then begin
//go away, I'm sleepin'
end begin
//all the other code in the talk procedure
end
What npcs are you going to have sleep in the game? I fear many of scripts will have to be modified in the end, depending on what you want to do...