Reply to Re: About creating a sprite from a script attached to the screen
If you don't have an account, just leave the password field blank.
Depends on the method you make him.. if you make him in DinkEdit, you pick up the sprite, as if you're gonna move it, then hold down SHIFT and click 5, then it asks for the script name, say you have a script called "knight.c", then you enter "knight" (without the .c), and it should work.
If you made the knight with the create_sprite(); command, you must do something like so:
int &knight = create_sprite(values);
sp_script(&knight, "knight");
I think. My DinkC is getting a little rusty, but I think that is how you do it. And if you don't understand what I've just babbled about, I'd suggest you read the txt files in the dink smallwood folder through first.
If you made the knight with the create_sprite(); command, you must do something like so:
int &knight = create_sprite(values);
sp_script(&knight, "knight");
I think. My DinkC is getting a little rusty, but I think that is how you do it. And if you don't understand what I've just babbled about, I'd suggest you read the txt files in the dink smallwood folder through first.
