The Dink Network

"enter" key

May 29th 2010, 12:35 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Is it possible to change what happens when enter is pressed and still bring up the inventory? Like create a sprite on top of the inventory screen when enter is pressed?
May 29th 2010, 12:46 PM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
Yep. Just create a script called button4 and make it do whatever you like.

This is basically what the enter button normally does. So you can include that bit of code in the button4 script so it still shows the inventory.

void main(void)
{
show_inventory();
kill_this_task();
}
May 29th 2010, 12:55 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Awesome, thanks! ^^,
May 29th 2010, 03:09 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Hm... looks like the inventory always is on top of everything, that sucks.

EDIT: I figured out a way to work around that; but is there a script for closing the inventory? I need to remove the sprites again.