This forum is meant for requesting technical support or reporting bugs.
Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
by mugginsmajik » Fri Mar 03, 2006 9:12 pm
Hi, is there a way to remove a hotspot permanently one you've dropped an item onto it, as it doesn't seem to come up on that property window. I have a scene where a dog is blocking your way and you need to give it some drugged meat in order for it to sleep, but I don't want it to be awake again every time you go back to that frame. The normal property window lets you disable a hotpot when clicked, can you do this with a drag dropped item?
-
mugginsmajik
- Active Member
-
- Posts: 66
- Joined: Sat Jan 28, 2006 2:36 am
by Mystery » Fri Mar 03, 2006 9:43 pm
I would try it like this: Go to Manage Inventory Items. When you drag the item on the hotspot, a window pops up where you can make the settings. In the Action area you can remove the dragged item from the inventory. To make the hotspot invisible, I would go to the Variable area and check "Change the value of one or more variables...". Create a new integer variable which should become 1 when the item is dragged on the hotspot.
After that you can go to the hotspot properties and go to the Variable area and check "The hotspot must be enabled only if" and add the new variable you created at "... the value of the following variable is 0".
I hope that this works out.
Maybe a more experienced member has a more simple idea how this can be done.
-
Mystery
- Forum Admin and Games Page admin
-
- Posts: 2990
- Joined: Sat Feb 04, 2006 8:12 am
- Location: Switzerland
-
by Candle » Fri Mar 03, 2006 10:17 pm
- Code: Select all
EXAMPLES:
To disable the hotspot number 1, use the following code:
Hotspot(1).Enabled = False
http://www.adventuremaker.com/help/vbsc ... s_and_text
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
-
Candle
- Administrator
-
- Posts: 3077
- Joined: Sat Feb 07, 2004 2:21 am
- Location: Rudy's Bar
by Mystery » Fri Mar 03, 2006 10:26 pm
Candle, just to be sure: When you drag the item on the hotspot and the window pops up, you have to go to the Advanced area and type in the code? Did I understand this correctly?
-
Mystery
- Forum Admin and Games Page admin
-
- Posts: 2990
- Joined: Sat Feb 04, 2006 8:12 am
- Location: Switzerland
-
by Candle » Fri Mar 03, 2006 10:34 pm
Yes you will see the area to put the VB code in.
I don't have AM running right now as I'm coding on something else so can look .
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
-
Candle
- Administrator
-
- Posts: 3077
- Joined: Sat Feb 07, 2004 2:21 am
- Location: Rudy's Bar
by mugginsmajik » Fri Mar 03, 2006 10:36 pm
Hi, thanks for your very quick replies, I'll see what I can do - Cheers!
-
mugginsmajik
- Active Member
-
- Posts: 66
- Joined: Sat Jan 28, 2006 2:36 am
Return to Adventure Maker Technical Support and Bug Reports
Who is online
Users browsing this forum: No registered users and 0 guests