The Dink Network

Heavy log

July 30th 2009, 12:32 PM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
//Very Heavy Log Item

void use ( void )
{
 say_stop("A log full of heaviness.",1);
}

void arm(void)
{
 
}

void disarm(void)
{
 Debug("Item disarmed");
 kill_this_task();
}

void pickup(void)
{
 Debug("Player now owns this item.");
 kill_this_task();
}

void drop(void)
{
 Debug("Item dropped.");
 kill_this_task();
}


That's a very heavy log. I want Dink's speed to go down while he has it in the inventory. Works if I put a set_dink_speed(4); thingy in void pickup, but if the player saves the game, exits and loads it again, the speed is set to normal. How do you work your way around this?
July 30th 2009, 03:09 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
You may have to attach a condition to the savebot script to make it slow him when he has the log. I don't think there's a way to have the game do something just from the item being in his inventory..
July 30th 2009, 06:35 PM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Hm, any ideas on how to do that? Or is there some other solution?
July 30th 2009, 07:12 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Put something like this in the main procedure of savebot.c.

int &log = count_item("item-log");
if (&log > 0)
set_dink_speed(4);