New type of item
I just got a new idea for types of weapons in Dink. Im not sure if anyone has tryed this but... What about making Procable weapons? i mean that would be awesome in my idea... If someone could tell me how to do the random command in DinkC i will be able to make some for my mod thats coming out in a while....

ehh... When you hit something it has a chance of casting a spell or something? lol its pretty nifty and is in most MMORPG's and i wanna make a Dmon with it in it <shrug> like every 1/10 of the time it will cast Fireball on the creature

July 13th 2004, 08:30 PM

Striker


Yeah, you can do that. Just add something like the following in your weapon's attack.
int &rand = random(1, 10)
if (&rand == 1)
{
//your effect and/or spell code goes here
}
int &rand = random(1, 10)
if (&rand == 1)
{
//your effect and/or spell code goes here
}