Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
mercedes wrote:One of your variables at the top, should that not be Tulipa_cemeterio_ok = 1, not, -- tulipia_ok =1 ?..
If going by the rest of the script..its the only variable that doesn't fit..Also I took the liberty of adding an underscore..
If u can't close the window...its because of your variables and the space between them..
Tulipa cemeterio_ok should be-- Tulipa_cemeterio_ok --
Try renaming variables..
Mystery wrote:First problem:
You have on the 3rd line: Tulipa_ok=1
Later in the script, you use Tulipa cemeterio_ok
Second problem:
Make sure that your variables are one word.
Instead of Tulipa cemeterio_ok use Tulipa_cemeterio_ok
Do this for all variables
Tulipa is the name of the object in the inventory (a flower)
And the Tulipa_cemiterio is the name of the picture i?m using on the hotspot
Well, in part it is working. The problem is when i put the second photo in the second place, the image of the second photo is shown in the first table.
And if i use the wrong photo in the wrong table, nothing happens... It should be shown the wrong photo in the wrong place
mercedes wrote:Well, in part it is working. The problem is when i put the second photo in the second place, the image of the second photo is shown in the first table.
Ok if the photo is showing on the first table instead of the second table, make sure u check the hotspot number..
If u copied and pasted the code..u may have forgotten to take out hotspot-( 8 )--Replacing 8 with new number.. In the upper part of code--The second line~And if i use the wrong photo in the wrong table, nothing happens... It should be shown the wrong photo in the wrong place
Post the code here if u can...I can only assume what it might be...Not sure..post back the code please..
Btw...
Highlight the code itself in the vbs window--- hold down CTRL and tap letter C.--keyboard
Then in reply here----
Hold down CTRL and and tap letter V..Or right click and paste~
I only mention in case u aren't sure how to do it..~:D
--Instead of a printed screen..This way I can just copy it.
With a printed screen, i can't highlight it..and copy it..
Mystery wrote:What I see is that you're still using different variable names.
Either use
Tulipa_ok = 1
or use
tulipa_cemiterio_ok = 0
You must always use the correct name of the variable
Mystery wrote:"Tulipa" is the name of the item.
"tulipa_cemiterio.jpg" is the name of the photo that is loaded in the hotspot.
But you are using two different names for the same variable:
Tulipa_ok = 1
and
tulipa_cemiterio_ok = 0
You should decide if your variable is called Tulipa or tulipa_cemiterio, because otherwise the script won't work
Dalton wrote:oh, now i get it. I?ll try it outMystery wrote:"Tulipa" is the name of the item.
"tulipa_cemiterio.jpg" is the name of the photo that is loaded in the hotspot.
But you are using two different names for the same variable:
Tulipa_ok = 1
and
tulipa_cemiterio_ok = 0
You should decide if your variable is called Tulipa or tulipa_cemiterio, because otherwise the script won't work
reneuend wrote:The red colored text below should be changed to: Tulipa_ok
or...you can change the 3rd line to tulipa_cemiterio_ok = 1
whichever way you choose, there should only be one variable representing tulipa!
---------------------------------------
Action.RemoveItem "Tulipa"
Action.LoadAPicture Hotspot( 8 ), "tulipa_cemiterio.jpg"
Tulipa_ok = 1
if HasItem ("Tulipa")=false and HasItem ("Rosa")=false and HasItem ("orquidea")=false and HasItem ("malva")=false and HasItem ("Girassol")=false and HasItem ("CopoDeLeite")=false Then
if tulipa_cemiterio_ok + rosa_cemiterio_ok + orquidea_cemiterio_ok + malva_cemiterio_ok + gira_cemiterio_ok + CopoDLeite_cemiterio_ok = 6 Then
Action.Message "Deu certo!"
Else
Action.Message "N?o aconteceu nada..."
Action.LoadAPicture Hotspot(, ""
Action.LoadAPicture Hotspot(9), ""
Action.LoadAPicture Hotspot(10), ""
Action.LoadAPicture Hotspot(11), ""
Action.LoadAPicture Hotspot(12), ""
Action.LoadAPicture Hotspot(13), ""
Action.AddItem "Tulipa"
Action.AddItem "Rosa"
Action.AddItem "orquidea"
Action.AddItem "malva"
Action.AddItem "Girassol"
Action.AddItem "CopoDeLeite"
tulipa_cemiterio_ok = 0
rosa_cemiterio_ok = 0
orquidea_cemiterio_ok = 0
malva_cemiterio_ok = 0
gira_cemiterio_ok = 0
CopoDLeite_cemiterio_ok = 0
End if
End if
Mystery wrote:Yes, AM is picky about .ico files sometimes. We have already discussed this problem in other threads.
You might be able to open it in an image software (like GIMP or Irfanview), and save it as .ico again
Mystery wrote:Do you only have problems with this .ico file, or also other ones?
You can send me that .ico file by email attachment, and I'll try to make it work in AM
Mystery wrote:Okay, and is it only orquidea.ico that has problems?
Mystery wrote:Hmmm, in that case I don't really understand why the last photo will give this error message, independently of which photo you are using
Hopefully somebody else will have an idea what might be the problem
Return to Adventure Maker General Discussion
Users browsing this forum: No registered users and 0 guests