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

Topics - Sriipvood

#1
Hi,
I have a problem with a Hotspot Script that i can't figure out.
I'm just a beginner and unfortunately have no clue about scripting, but by following the tutorials i somehow got myself 2 rooms connectet through Hotspots, and it worked (hurray!).
So next I created room 3 and made a hotspot in room 2 as a door just like the first time, copying the script i used before, which i knew was working...
here is the room script of room 2:

Code: ags

// room script file
bool say_once = false;
function room_FirstLoad()
{
}
function hAusgang_AnyClick()
{
if (Verbs.UsedAction(eGA_WalkTo))  player.EnterRoom(1, 139, 159, eDirectionDown);
}
function hToilet_AnyClick()
{
if (Verbs.UsedAction(eGA_WalkTo))  player.EnterRoom(3, 170, 140, eDirectionDown);
}

Since the functions seem to be the same i cant understand why one is working but the other one is not(hAusgang is the one working and hToilet is the one that doesnt)... This is my first attempt at this so I guess the problem is probably something obvious, sorry if this got answered before. thanks in advance  :kiss:
SMF spam blocked by CleanTalk