I'm trying to use this script by Lich - it makes dude_obj fall down on a bed, display a float message and rest for 12 hours. I've changed it from a spatial proc to a use proc so i can easily assign it to bed scenery items.
Now, i've managed to make the script work, except
a) dude_obj won't play his fall down animations.
b) he just stands there and displays 'error' while the 12 hrs pass.
I haven't set a message to display so i can see why it says 'error'. Can anyone tell me
a) why he isn't animating?
b) how i enter a message to display?
Here's the script code:
Thanks
Now, i've managed to make the script work, except
a) dude_obj won't play his fall down animations.
b) he just stands there and displays 'error' while the 12 hrs pass.
I haven't set a message to display so i can see why it says 'error'. Can anyone tell me
a) why he isn't animating?
b) how i enter a message to display?
Here's the script code:
Code:
procedure use_p_proc;
procedure start;
procedure start begin
end
procedure use_p_proc begin
variable temp;
temp := random( 100, 105 );
if (source_obj == dude_obj) then begin
script_overrides;
reg_anim_begin();
reg_anim_animate(dude_obj, ANIM_fall_back, -1);
reg_anim_end();
critter_heal(dude_obj,999);
game_time_advance(12 * ONE_GAME_HOUR);
float_msg(dude_obj,mstr(temp),2);
end
end
Thanks