Heavy log
//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?
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..
Hm, any ideas on how to do that? Or is there some other solution?
Put something like this in the main procedure of savebot.c.
int &log = count_item("item-log");
if (&log > 0)
set_dink_speed(4);
int &log = count_item("item-log");
if (&log > 0)
set_dink_speed(4);








