Reply to Re: Summoning
If you don't have an account, just leave the password field blank.
You can't nest functions (or control structures, like if) in DinkC:
if ((&random(1,2)) == 2)
{
sp_target(¤t_sprite, &summon);
}
Isn't strictly possible, instead, try:
int &crap = random(2,1)
if (&crap == 2)
{
sp_target(¤t_sprite, &summon);
}
&random doesn't make sense, random is a function, not a variable. The & sign is not needed.
Furthermore, random(&a, &b) generates a number between &b and &b + &a - 1, so random(1,2) is constant 2.
if ((&random(1,2)) == 2)
{
sp_target(¤t_sprite, &summon);
}
Isn't strictly possible, instead, try:
int &crap = random(2,1)
if (&crap == 2)
{
sp_target(¤t_sprite, &summon);
}
&random doesn't make sense, random is a function, not a variable. The & sign is not needed.
Furthermore, random(&a, &b) generates a number between &b and &b + &a - 1, so random(1,2) is constant 2.