The Dink Network

New type of item

July 13th 2004, 01:34 PM
dragon.gif
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....
July 13th 2004, 01:36 PM
duck.gif
Tal
Noble He/Him United States
Super Sexy Tal Pal 
Um.. procable?
July 13th 2004, 04:49 PM
dragon.gif
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
anon.gif
Striker
Ghost They/Them
 
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
}
July 13th 2004, 08:34 PM
dragon.gif
thank you very much!