The Dink Network

Reply to Re: A "high-score" based Dmod

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 17th 2020, 10:59 AM
slayer.gif
Exzcimus
Peasant He/Him Philippines
Change is constant, but Constants do not change. 
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

//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");

} 

}