View Single Post
  #5  
Old 12-27-2015, 11:50 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 114,140
Abronsyth is on a distinguished road
Default

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 >= && $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 >= && $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
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 12-28-2015 at 12:11 AM.
Reply With Quote