combining 3 inventory items

This forum is meant for people to share their knowledge by writing their own tutorials for Adventure Maker.

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

combining 3 inventory items

Postby Bort » Sun Jul 15, 2007 4:12 pm

first of all create a new "blank frame"

from the project menu list left of screen
select the "VBS variables" option and add three new integrer variables

half_moon
quarter_moon
quarter_moon2

then create a large hotspot (on the blank frame you have made) and set the picture to combine.jpg
(see attached image)

then create a smaller hotspot to place on the right hand solo square "hole"

this will be Hotspot 2

set it's picture in hotspot properties to full_moon.jpg (see attached image)
(and select resize to fit)

this will be the item you recieve when you have combined the other 3 items...

set the action property of this hotspot to

hide and disable pernamently
(and you can add a message if you want to inform the player what the new item is)

from the hotspot item section select "when the hotspot is clicked add a new item.."

click the NEW tab and type full_moon
then it will ask you to choose an icon file for the item...browse the window to find the icons i have provided or just use your own to save time..
(i've attached the icons for this example in a zip file)

then go to the hotspot variables section

and select

"the hotspot must be enabled only if"

then

"the value of the following variable is 1"

and add the

half_moon
quarter_moon
quarter_moon2

variables to this list

this will mean that you will only see this hotspot when you have placed the three inventory items in the correct square "Hole" (hotspot) on the screen

then click on the manage items option on the AM frame editor menu

select

"create new item"

and type

half_moon

browse to find the icon file as before..

then create another new item

type

quarter_moon

etc


now click and hold you mouse on each of the item names listed in the manage items pop up window..and you will notice that the icon will appear as your mouse cursor...ok


now back to hotspots again...


create 3 new hotspots and place then on top of the left hand side square "holes" (no options needed for these hotspots )
hotspot 3 at the top, then hotspot 4 and 5 going down the screen..
these will recieve the inventory item you will be combining to get that full moon item later

click the manage inventory items option again

click and hold you mouse on the half_moon item when the cursor changes to the icon drag this onto the topmost of the three hotspots you have just created..ie onto the topmost of the left hand side three square "holes"

a hotspot properties window will pop up

select the variables section..

and select the

"change the value of one or more variables" option

then

"variables the value of which must become 1"

and add

half_moon

then go to the advanced section of the hotspot properties

select the "on item drag and drop..."option
(you perhaps see where this is going)

and add this code to the window

Code: Select all
Action.LoadAPicture Hotspot(3), "half_moon.jpg"
Action.RemoveItem "Half_Moon"


(i have attached the half moon image here)

click ok

then drag the quarter_moon item onto hotspot 4
another hotspot properties window will appear

select the variables section..

and select the

"change the value of one or more variables" option

then

"variables the value of which must become 1"

and add

quarter_moon

then go to the advanced section of the hotspot properties

select the "on item drag and drop..."option
(you perhaps see where this is going)

and add this code to the window

Code: Select all
Action.LoadAPicture Hotspot(4), "quarter_moon.jpg"
Action.RemoveItem "quarter_Moon"


(i have attached the quarter moon image here)

click ok

then also drag the quarter moon item onto hotspot 5
the lower of the three square "holes"
(you will have two quarter moon items)

select the variables section..

and select the

"change the value of one or more variables" option

then

"variables the value of which must become 1"

and add

quarter_moon2

then go to the advanced section of the hotspot properties

select the "on item drag and drop..."option
(you perhaps see where this is going)

and add this code to the window

Code: Select all
Action.LoadAPicture Hotspot(5), "quarter_moon.jpg"
Action.RemoveItem "quarter_Moon"


(i have attached the quarter moon image here)

click ok
almost done...

go to the frame editor and open the frame properties

adavanced setion and select the
"execute VBS code ..." option

put this into the window

Code: Select all
Action.AddItem "Half_Moon"
Action.AddItem "Quarter_Moon"
Action.AddItem "Quarter_Moon"


this is to give you the three items needed to use in the example..

hope this is ok..
place them in the three square holes on the left and the new full moon item appears in the hole to the right..click on it and you get the full moon item
Attachments
quarter_moon.jpg
the QUARTER MOON image
quarter_moon.jpg (68.14 KiB) Viewed 2457 times
half_moon.jpg
the HALF MOON image
half_moon.jpg (61.69 KiB) Viewed 2457 times
icons.zip
the inventory item icons
(24.94 KiB) Downloaded 228 times
full_moon.jpg
FULL MOON
full_moon.jpg (69.96 KiB) Viewed 2457 times
combine.jpg
COMBINE.JPG
combine.jpg (43.86 KiB) Viewed 2457 times
Last edited by Bort on Sun Jul 15, 2007 4:38 pm, edited 1 time in total.
"I've had a wonderful evening...but this wasn't it.." GM
"This is not my beautiful house..." DB
User avatar
Bort
Active Member
 
Posts: 65
Joined: Sun Jul 08, 2007 9:02 pm

Postby Bort » Sun Jul 15, 2007 4:33 pm

here's the project folder..contains all the graphics etc needed if you want to play about with it :D
Attachments
COMBINE.zip
the AM project folder...COMBINE
(1.09 MiB) Downloaded 339 times
"I've had a wonderful evening...but this wasn't it.." GM
"This is not my beautiful house..." DB
User avatar
Bort
Active Member
 
Posts: 65
Joined: Sun Jul 08, 2007 9:02 pm

Postby GM-Support » Fri Jul 27, 2007 11:32 pm

Thanks!
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm


Return to Post Your Own Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests

cron