Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2015, 04:27 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 69,311
tahbikat is on a distinguished road
Default

Quote:
Originally Posted by Distortion View Post
Is there a way to add an image to every explore encounter?
I was thinking the same. I'd just put the image of the egg (or whatever your lvl0 image is) for each adopt in the comments.

So for example take this:

PHP Code:
            if($random >= 41 && $random <= 60){
                
$species "Another Common Species";
                
$newadopt = new StockAdopt($species);
                
$newadopt->append($mysidia->user->username);
                
$document->add(new Comment("Oh look! You found a $species! It's pretty common."FALSE));
            } 
and replace the $document->add(new Comment( part with this:

PHP Code:
$document->add(new Comment("Oh look! You found a <img src='imglinkhere' /> $species egg! It's pretty common."FALSE)); 

Make sure you use only 'single' quotes for any code instead of the "double" quotes. Also, you can experiment with image placement. So if you want it before the comment and centered on its own line just add some br tags after it with center tags around. Likewise, do the same for items, currency, and when a user turns up with nothing.

I also found it quite helpful to add a link called (Continue Exploring) to the same explorearea1 page after the comment, so that instead of having to refresh the page, a user just clicks it to continue exploring.

I'm gonna mess with it a little bit in the coming days, so I'll edit or post here again with what I come up with. (:
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quest- Explore System (Open Source) squiggler Tutorials and Tips 4 07-23-2020 12:07 PM
How to create an image map collierox Tutorials and Tips 3 03-13-2018 04:11 AM
Explore Help? cailynmae Questions and Supports 7 03-29-2017 11:37 PM
Help Create This? Abronsyth Templates and Themes 16 10-24-2011 03:05 PM
How to create a a battle system ,shop and currency?? SieghartZeke Questions and Supports 9 11-02-2009 12:15 AM


All times are GMT -5. The time now is 06:20 PM.

Currently Active Users: 2115 (0 members and 2115 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636