Custom Picture Path
Authors: LiTTleDRAgo
Version: 1.40
Type: Misc Add-on
Key Term: Misc Add-on
IntroductionJust another useless addon
Features
- Allows you to use picture from another folder for Show Picture command
Screenshots(http://4.bp.blogspot.com/-MUDpFuKXOq0/Uefyrkp52vI/AAAAAAAAAQE/eOXfzXxFsxM/s1600/No+Screenshot.png)
ScriptHere (http://littledrago.blogspot.com/2013/03/rgss2-custom-picture-path.html)
InstructionsTo use it, go to script command and put
custom_pict(folder_name, name_file, hue = 0)
then use show picture command
Example use
Script : custom_pict('Graphics/Panoramas/','003-StarlitSky01', 0)
Show Picture : 1,'',Upper Left(0,0),(100%,100%),255,Normal
CompatibilityCompatible with VX & VXA
Credits and Thanks
Author's NotesEnjoy ~
Question, does this only work on the default directories, or will it work on say
custom_pict('graphics/pictures/custom folder/', 'pic')
Also is it case sensative, and does it work in common events?
Reason I asked is because I tried to use
custom_pict('graphics/pictures/Battle - HUD/' ,'button-01')
In a common event, and it gave me a syntax error :s
I believe it's not case sensitive
try to use it like this
folder = 'graphics/pictures/Battle - HUD/'
file = 'button-01'
custom_pict(folder,file)
It still doesn't work :(
Is it because it won't work in a common event o.o
can you upload your common event? I mean, your CommonEvents.rxdata
preferably, in filehosting that doesn't need registration to download it (such as dropbox or mediafire)
Here ya go.
http://uppit.com/nr1hoyvniu1t/CommonEvents.rxdata
Edit:
It's the 10th event, should say Battle HUD
Quote from: Zexion on August 04, 2013, 05:37:15 pm
Here ya go.
http://uppit.com/nr1hoyvniu1t/CommonEvents.rxdata
Edit:
It's the 10th event, should say Battle HUD
This website is offline.
The server may be down for maintenance, there may be a network problem, or the site may be experiencing excessive load.
sorry, but could you upload it to mediafire or dropbox?
https://dl.dropboxusercontent.com/u/59018752/CommonEvents.rxdata
There :P soz, had to dl dropbox again
you typed it wrongly
Quotefolder = 'Graphics/Pictures/Battle
HUD/'
file = '01 - Button - Attack'
custom_pict(folder, file)
it should be
Quotefolder = 'Graphics/Pictures/Battle ' +
'HUD/'
file = '01 - Button - Attack'
custom_pict(folder, file)
or
Quotefolder =
'Graphics/Pictures/Battle HUD/'
file = '01 - Button - Attack'
custom_pict(folder, file)
Oh so if it passes the line then it doesn't count ? XD
Yeah, the way how RMXP handles the event command 'Script' is through use of the method
eval.
It breaks each line up and tries to evaluate the code one-at-a-time.
Basically, it did this:
eval("folder = 'Graphics/Pictures/Battle")
You can already see the problem: there's no second quotation mark to end the string. Hence, syntax error.
To be honest, I had a feeling that this was happening, but I didn't think of what to do next. I seriously didn't even attempt to think about how to fix it. I just became a zombie and posted it on this thread. What is wrong with me ?? D: