Ah, so it does work perfectly with your explore system (tested it)! Actually I'm really enjoying playing with your explore system, haha. Now if I can combine the randomness from the one I was using with yours...well then I'd be all set!
Thank you for the help Kyttias, I really do appreciate it <3
EDIT:
It's ridiculous how much I am grinning right now...so I figured out how to make it so when a user visits a location (as set up in Kyttias' explore system) they have a random chance of encountering an adoptable! In fact this could be used to make the chance of encountering anything random (items, specific texts, etc). Here's just the snippet that I've gotten to work right now;
PHP Code:
case "Area_Name":
$random = rand(1,4);
# So you want to give users a pet?
if($random >= 1 && $random <= 2){
$document->add(new Comment("Look, a pet!", FALSE));
# Quantity, Item Name, Area Name
$this->pickupPet("Pet 1");
$this->exploreButton("Next_Area", FALSE, "Continue...");
}
elseif($random >= 3 && $random <= 4){
$document->add(new Comment("Huh, nothing here!", FALSE));
$this->exploreButton("Next_Area", FALSE, "Return to Map.");
}
break;
Just in case anyone else could use this <3