How To Use the Magnifying Icon In the Inventory? [SOLVED]

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

How To Use the Magnifying Icon In the Inventory? [SOLVED]

Postby 3dgamer » Tue Jan 20, 2009 10:42 am

I am trying to use a magnifying glass to examine items in the inventory. I found the help instructions at: http://www.adventuremaker.com/help/vbsc ... _inventory entitled, "24. How to allow the player to examine the inventory items?", but I am having a bit of a problem with getting some of it.

I have gotten to the part of the "use items on each other" menu and I have been able to create an event for dragging the magnifying glass over a key (a test item). However, none of the options in the menu allow me to go to another frame, picture, etc. I can only "remove the first item, remove the second item or add an item" to the inventory.

So how do I go to another frame using this method?

TIA :)

--EDIT--

Okay folks, I think I see what is happening. I got to the Helps tip page by doing a search for the word "inventory" and hyperlinking to the solution. I didn't notice that I was in the VBS section. :) I'll try to see if I can figure the coding out on my own first and then let you know what happens.

Cya
Last edited by 3dgamer on Wed Jan 21, 2009 12:28 am, edited 2 times in total.
3DGamer
User avatar
3dgamer
Expert Member
 
Posts: 301
Joined: Mon Dec 15, 2008 7:12 am

Postby mercedes » Tue Jan 20, 2009 10:49 am

Hi there..

Been a while since i seen that menu..but You could put it in the Advanced..

Action.gotoframe "framename"

I think how that works..is u create the event...then u edit it....or u can use the advanced tab..Sorry been awhile since i've had to use that..and I forget easily..:roll:..it's ridiculous..lol..But i think that's how it goes..It has to go in the Advanced tab..

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby 3dgamer » Tue Jan 20, 2009 11:00 am

Thanks for the response, Mercedes. I just realized that this would be a VBS answer right before you posted your response; so I had edited my initial post. But your response will help save me some time for locating the code. So thank you for that. :) I'll let you know how things go.

Cya!

--EDIT--

Okay, that did help, Mercedes. I was able to get the code to work. So thanks. :)

Now my new problem... I had put the code in the initial frame because I wanted the magnifying glass to be there at the start of the game. However, whenever I return to the initial frame, it loads an additional magnifying glass icon into the inventory. :( Any hints on limiting it to just one mag. glass icon for the entire game?

Thanks.
3DGamer
User avatar
3dgamer
Expert Member
 
Posts: 301
Joined: Mon Dec 15, 2008 7:12 am

Postby mercedes » Tue Jan 20, 2009 11:29 am

Put this in the very first frame u start with...Let me know if this works..Remember to add the magnifying glass to the areas folder..and when u put it in the code..make sure its the exact name of the icon as u see it...no extention..

Code: Select all
If Magnifier = 0 Then
  Action.AddItem "Magnifier"
  Magnifier = 1
End If


Just thought i'd add this to help u so u just had to look in one place..:)

Code: Select all
Action.LoadAPicture Hotspot(1), "Name_of_Picture.jpg"

Code: Select all
Action.GoToFrame "Frame_Name" ---No extention

Code: Select all
Action.GoToFrame "Frame_Name",5,1


That goes to the frame with Alphablending in 5 seconds..In the help file is where u find transitions..1-5

If no transition..and u just want a timer..then its
Code: Select all
Action.CreateTimedEvent 1, "Action.GoToFrame ""Frame_Name"""



Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby 3dgamer » Wed Jan 21, 2009 12:27 am

Hi Mercedes,

Thanks so much for the code help! And the alphablending code will come in handy when I need it. 8)

At first I was still getting multiple MG icons, but I tweaked your code some more and I found that this one worked for yielding a single magnifying glass icon in the inventory when I returned to the frame:

Code: Select all
If Magnifier < 1 Then
  Action.AddItem "magnifying glass"
End If
  Magnifier = 1


Again, thanks for all the help! :)
3DGamer
User avatar
3dgamer
Expert Member
 
Posts: 301
Joined: Mon Dec 15, 2008 7:12 am

Postby mercedes » Wed Jan 21, 2009 6:26 am

I gather it depends on whether or not the user is "picking up" the magnifyng glass or u just want it to appear in the inventory when it starts..The code i put is for the user to pick it up..then have it stay and only 1 remains when going back to the same frame..multiple times..:D

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby 3dgamer » Wed Jan 21, 2009 9:02 am

Okay, I see. Yes, my needs are for the player to always have the magnifier in the inventory (i.e. to say, at the start of the game). But I will remember your code for whenever I need the player to pick up the MG and then look at something.

Again, thanks! :)
3DGamer
User avatar
3dgamer
Expert Member
 
Posts: 301
Joined: Mon Dec 15, 2008 7:12 am


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests