The Dink Network

Reply to Re: New Dev File: Goblin Fun

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:
 
 
February 14th 2007, 10:28 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
I've modified your use procedure so it should work. Just replace [sequence] with the sequence you want to use (there should be four instances) and add/subtract from &star_x and &star_y as needed to have it created in the proper place. The sequence will only play once before disappearing though, and it will stay there even if the sprite moves. So I don't know if it'll work good enough for you or not.

Since you are using magic, I don't know why you would make the enemy target "Dink" if there isn't a second monster. That wouldn't exactly be helpful to the player If you took out that part, the monster would untarget "Dink" (in case the monster had him targeted in the first place) and that would be somewhat helpful. Isn't magic supposed to help the player?

void use( void )
{
say_stop("Shirim Shakala", 1);
int &enemyA = get_rand_sprite_with_this_brain(9, 1);
int &enemyB = get_sprite_with_this_brain(9, &enemyA);

int &star_x;
int &star_y;
int ☆

if (&enemyA == 0)
return();

if (&enemyA > 0)
{
sp_target(&enemyA, &enemyB);
&star_x = sp_x(&enemyA, -1);
&star_y = sp_y(&enemyA, -1);

//add/subtract from star's x,y

&star = create_sprite(&star_x,&star_y,7,[sequence],1);
sp_seq(&star,[sequence]);
sp_nohit(&star, 1);
sp_que(&star, 500);
}

if (&enemyB == 0)
sp_target(&enemyA, 1);

if(&enemyB > 0)
{
sp_target(&enemyB, &enemyA);
&star_x = sp_x(&enemyB, -1);
&star_y = sp_y(&enemyB, -1);

//add/subtract from star's x,y

&star = create_sprite(&star_x,&star_y,7,[sequence],1);
sp_seq(&star,[sequence]);
sp_nohit(&star, 1);
sp_que(&star, 500);
}

&magic_level = 0;
draw_status();
}