At first note that I use AGS v3.0
Alright, I made a room which was a panel, that is no character visible etc, anyhow my intention was that the player must insert an item into the panel, thus bringing it online (changing room) and moving onward in the game. Now I got this to work with the command
function hhotspot_useinv()
{
player.changeroom(x);
}
now there is a certain backside with this as I found out it doesnt matter which item you use on this hotspot the player will still change the room. Now this is silly. So I wondered if someone could advice me exactly how to define a restriction on this sort of command so you can select which item can be used and prevent other items to be used on the particular hotspot. I have searched the manual but perhaps this is too simple a thing to be mentioned there. I, however, have failed to find out the solution whatever I have tried to do.
So here I am
Thanks for your (future) assistance.
Alright, I made a room which was a panel, that is no character visible etc, anyhow my intention was that the player must insert an item into the panel, thus bringing it online (changing room) and moving onward in the game. Now I got this to work with the command
function hhotspot_useinv()
{
player.changeroom(x);
}
now there is a certain backside with this as I found out it doesnt matter which item you use on this hotspot the player will still change the room. Now this is silly. So I wondered if someone could advice me exactly how to define a restriction on this sort of command so you can select which item can be used and prevent other items to be used on the particular hotspot. I have searched the manual but perhaps this is too simple a thing to be mentioned there. I, however, have failed to find out the solution whatever I have tried to do.
So here I am

Thanks for your (future) assistance.