Forgive me if this is a really dumb question, but I've never tried my hand at programming before and I'm getting an error with an AGS scrip that I just can't seem to fix.
I'm working on a very basic game that I'm just making to familiarize myself with the AGS engine. Currently, I'm trying to get a room change to work, and I keep getting this error:
- message: Error (line 5): '[' expected file: room1.asc line: 5 -
I'm trying to send my main character from the first room to the second room, and the darn thing won't compile. Here's the whole script for my first room:
1: // room script file
2:
3: function room_LeaveBottom()
4: {
5: character.ChangeRoom(2, 154, 133);
6: }
Any help would be extremely appreciated, thank you.
Oh, and hi everyone.
I'm working on a very basic game that I'm just making to familiarize myself with the AGS engine. Currently, I'm trying to get a room change to work, and I keep getting this error:
- message: Error (line 5): '[' expected file: room1.asc line: 5 -
I'm trying to send my main character from the first room to the second room, and the darn thing won't compile. Here's the whole script for my first room:
1: // room script file
2:
3: function room_LeaveBottom()
4: {
5: character.ChangeRoom(2, 154, 133);
6: }
Any help would be extremely appreciated, thank you.
Oh, and hi everyone.