Control Dink
How do you freeze Dink while he can still talk. Like shut down all accept spacebar and ofcourse escape. My real question is can you control like what Dink can do.
freeze(1) freezes Dink so that only spacebar can be used and unfreeze(1) unfreezes Dink (of course).
I know that and I didn't mean that (of course). But Dink can't talk when he's frozen can he?
No, not really. Well, I suppose uou could create a fake Dink, and arm him with a fake weapon and spell. That way the only keys that would respond would be the space bar, enter, and the escape key.
I'm trying something like that but if the player can press enter he can change weapons and spells. But I'm asking this because I want Dink to be able to sit on a chair. I have graphics for that (Thanks Rabidwolf9!) but now I want something like you touch or talk to the chair and that you sit down then, or should I say the fake Dink but then I need him to get up without the real Dink doing stuff and without him being able to do nothing else he can't get up because there's nothing were the script will react on. So the best thing would be Dink talks to the chair, a choice appears sit down or leave; Dink sits on the chair able to talk (because he's in front of a bar and else the chair would be useless anyway and also able to bring up a choice menu that says get up and leave. So.. any help?
I think I managed to do it myself but there are two problems. How do I set the depth que of the fake Dink and how do I make it so Dink can't disarm his fists?
use sp_que(&fakedink, ...).
You can edit the script for the enter key(it's button4.c). Use
void main(void)
{
if(&story != ???)
{ show_inventory();
}
}
You can edit the script for the enter key(it's button4.c). Use
void main(void)
{
if(&story != ???)
{ show_inventory();
}
}
The depth que works, thanks! But I can't find button4.c I looked into the source and I could only find button6.c. Where is it?
There isn't a button4.c script... just create one like button6.c. When button4.c doesn't exist, this basically happens:
void main(void)
{
show_inventory();
kill_this_task();
}
void main(void)
{
show_inventory();
kill_this_task();
}
Thanks Dan! Now I've finished the entire sitting thing but there's only one slight problem left. When I press enter it wont play the sound you hear when you press enter. I gues I need to play it in the new button4 script but if it's something else please tell me.
Ah, yeah... you do have to play it manually. I forget what sound number / sound speed you need to use.










