The Dink Network

Control Dink

July 18th 2006, 05:52 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
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.
July 18th 2006, 07:43 PM
dragon.gif
freeze(1) freezes Dink so that only spacebar can be used and unfreeze(1) unfreezes Dink (of course).
July 18th 2006, 07:49 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
I know that and I didn't mean that (of course). But Dink can't talk when he's frozen can he?
July 18th 2006, 11:20 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
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.
July 19th 2006, 07:21 AM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
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?
July 19th 2006, 09:51 AM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
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?
July 19th 2006, 04:51 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
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();
}
}
July 19th 2006, 06:19 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
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?
July 19th 2006, 07:12 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
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();
}
July 19th 2006, 07:26 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
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.
July 19th 2006, 07:31 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Ah, yeah... you do have to play it manually. I forget what sound number / sound speed you need to use.
July 19th 2006, 08:06 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
It's all done now. The sound should be Playsound(18, 22050, 0,0,0);.