Reply to Re: A "high-score" based Dmod
If you don't have an account, just leave the password field blank.
Is there something wrong with my scripting? This script works fine on the 'freedink' version but it randomly crashes when certain scripts are used in HD and 1.08 versions. I know that freedink is the most stable version available but I still consider those who don't use it.
i-sprint.c
i-sprint.c
//manual sprint. disallowed by condition 2 and (zero stamina) allowed by condition 1, assigns condition 3 void arm ( void ) { } void use ( void ) { if(&condition != 2) { if(&strength < 1) { debug("event 'zs' with condition &condition"); say("OUT OF STAMINA", 1); &condition = 2; } if(&strength > 0) { sp_kill_wait(1); &condition = 3; playsound(13, 16000, 0, 0, 0); sp_frame_delay(1, 5); set_dink_speed(2); wait(100); sp_frame_delay(1, 0); set_dink_speed(3); &strength -= 1; &condition = 1; } } if(&condition == 1) { if(&strength < 1) { debug("event 'zs' with condition &condition"); say("OUT OF STAMINA", 1); } if(&strength > 0) { debug("event 'sb' with condition &condition"); } } //if sprint is disallowed if(&condition == 2) { debug("sprinting disallowed"); } }