The Dink Network

Reply to HD and Yeoldedink fail to run some scripts that 1.08 can run

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:
 
 
July 17th 2024, 02:23 AM
death.gif
Seseler
Peasant He/Him Heard Island And Mcdonald Islands
 
In The Creeping Sands, screen 116 contains a secret that is supposed to become visible after killing the enemy on the screen. This is done by having the hole a script that calls sp_nodraw in it's main procedure, and the enemy's death procedure makes it visible.

In Dink 1.08 this works as it should. However, in all of HD, Freedink and Yeoldedink the hole is visible before killing the enemy.

For refence here is the hole's script:
/this script is for secret entrance to top of mountains

void main( void )
{
  &aaaa = &current_sprite;
  sp_nodraw(&current_sprite, 1);
}


I believe that the issue is caused because there are two null bytes in the start of the script (omitted from the code above).

The comment is missing a slash, but it does not affect the issue.

Side note:

The hole is made appear by having the following in the monster's death procedure:
  sp_nodraw(&aaaa, 0);
  sp_script(&aaaa, "s3-sec2");


Incidentally, the value of &aaaa is likely correct, because one screen left there is a sprite that also happens to use &aaaaa and sets it to correct value.