Is It Possible? Let a player first pick up a backpack

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

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

Is It Possible? Let a player first pick up a backpack

Postby -GameCreator- » Thu Aug 14, 2008 9:01 am

Hello, I was just wondering would It be possible to make so you can pick up Items and add them Into your Inventory after a bagpack(not sure If It`s spelled this way, I mean a bag to carry things In) Is picked up?Something like the inventory only shows up after the certain Item Is picked up?Because I want to make It realistic for my Pharaoh`s Curse game, but I have no clue If that`s possible, or how to do It.

Thanks If you`re reading this.If you can, please help. :(
I has no signature :(
-GameCreator-
Junior Member
 
Posts: 8
Joined: Tue Aug 12, 2008 1:18 pm
Location: Bulgaria

Postby mercedes » Thu Aug 14, 2008 9:23 am

Hi there..

To hide and show the inventory the syntax is..put this in the hotspot when u want to hide it..

Code: Select all
Action.HideInventoryButton


to show it again

Code: Select all
Action.ShowInventoryButton


I gather u are tying to hide the inventory..not the "Item" right..?


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

Postby Mystery » Thu Aug 14, 2008 10:15 am

I would create a variable for the backpack.
Then add in the Advanced Tab of the other items something like:

Code: Select all
If backpack = 0 Then
  Action.Message "You need first something to carry it."
Else
  Action.AddItem "item_name"
  Hotspot(Hotspot_Number).enabled = false
End If


You can set the game in the Project Properties so, that if the inventory is empty it doesn't show up.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland

Postby -GameCreator- » Fri Aug 15, 2008 10:52 am

Thanks for the help, guys!It works.
I has no signature :(
-GameCreator-
Junior Member
 
Posts: 8
Joined: Tue Aug 12, 2008 1:18 pm
Location: Bulgaria

Postby Mystery » Fri Aug 15, 2008 10:59 am

Great! :)
You're welcome.
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron