Scripting help please?
In the D-mod I'm makeing I have a mage that teaches you a spell,
the thing is he is realy mean. So I what it so if you attack him he will cast acid rain on you to kill ya. Please show me how to script it.
the thing is he is realy mean. So I what it so if you attack him he will cast acid rain on you to kill ya. Please show me how to script it.
It would be complicated to cast it as normal (projectile), but you could easily create the rain sequence on Dink and make it damage him.
ok then could you help me with that?
Have you looked through tutorials and the DinkC reference? You'd be surprised at how much you can learn from those. Anywhoo.. For this we will first need to get Dink's coordinates stored in variables (&dink_x, &dink_y) then we will create the acid rain using a create_sprite() command. You may need to tweak the coordinates by adding or subtracting to the variables.
//freeze dink first so theres no escape
freeze(1);
//getting dink's coordinates
int &dink_x = sp_x(1, -1);
int &dink_y = sp_y(1, -1);
//now we will create the sprite and give its damage
int &rain = create_sprite(&dink_x, &dink_y, 6, 94, 1);
sp_seq(&rain,94);
sp_touch_damage(&rain, 5);
//freeze dink first so theres no escape
freeze(1);
//getting dink's coordinates
int &dink_x = sp_x(1, -1);
int &dink_y = sp_y(1, -1);
//now we will create the sprite and give its damage
int &rain = create_sprite(&dink_x, &dink_y, 6, 94, 1);
sp_seq(&rain,94);
sp_touch_damage(&rain, 5);









