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 - Sriipvood

#1
I'm sorry i forgot the details. it simply didnt react to a click at all, which probably was because i didnt link it to an event like you mentioned.
I actually (more by accident while fooling around) tried the event button. since then I can enter room 2 from room 1, but once i try entering room 3 or 1 i get this error:
QuotePrepare_Script: Error -18 (No such Function in Script) trying to run `room_Leave´(Room2)
.
I tried to delete the hToilet Script, (No changes made on the hAusgang Script) but i still get the error  :confused:
I guess i should start over, Thank You for your answer and the Tips, If i ever solve this I'll update you  :smiley:
edit: I deleted the room2 script and startet over, I got the "It runs!" message but i still get -> Error -18 (No such Function in Script)
#2
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