Log in

View Full Version : Breeding help


SilverDragonTears
04-12-2012, 11:41 PM
If a dragon is a specific type, I'd like to make a random chance of having a different image. Here is what I have so far....



$altchance = rand(0,100);
if ($altchance <= "100" && $type == "Bastet Dragon"){
$imageurl = "http://taleofdragons.net/picuploads/png/043e9d1f2e854bb57fce31e1179a2449.png";}



It's not inserting the image into the $imageurl field.