Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Guba

#1
Ah never mind, I got it to work. Apparently I had tried something similar before and not removed the script entry from the hotspots actions panel. I did this and remade the script and now it works fine.

Thanks for the assistance!
#2
Thanks for the swift reply!

I tried this out however now the game crashes when I try this with whichever item in the inventory resulting in the following error message:

"Error: prepare_script: error -18 (no such function in script) trying to run 'hhotspot_UseInv' (room 3)"

AGS doesnt note any errors in scripting when I hit F5.

Ideas what this might mean?
#3
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  :P

Thanks for your (future) assistance.
SMF spam blocked by CleanTalk