Game authors and players, please read this thread!

Author Topic: How do I go from the 1st room I created to the second room created?  (Read 367 times)  Share 

I am making this game called William in the USA but I don't know how to get my character from room 1 to room 2. I tried everything I could think of but nothing worked. This is my first game. So I need help it is not even mentioned in the AGS Tutorial. Thanks.



Akatosh

  • Still dropping by every couple of months
    • Best Innovation Award Winner 2007, for '_Access'
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
  • Akatosh worked on a game that was nominated for an AGS Award!
Try the player.ChangeRoom command, probably?

LeChuck

  • The three first nicks I tested were taken... :(
  • LeChuck worked on a game that was nominated for an AGS Award!
I don't think that's even remotely possible.


Seriously though, throw a region on the part of the room you want to trigger the change room command, then edit that region's script file. Type in player.ChangeRoom(room number) and you're all set. That's the basic version.

Akatosh

  • Still dropping by every couple of months
    • Best Innovation Award Winner 2007, for '_Access'
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
  • Akatosh worked on a game that was nominated for an AGS Award!
Anyway, to save Ashen some work:

It's also mentioned in the BFAQ and the manual.

Ashen

Akatosh, that's not the BFAQ, it's just a Wiki-fied version of the manual, but thanks anyway :)
The tutorial in the manual deals with Interactions, even if it doesn't mention the exact one you want (not that it's that obscurely named). There's also the Interaction Editor command - I know I adise people not to use them, but it does give the script equivilant.
I know what you're thinking ... Don't think that.