Adventure Game Studio

AGS Development => Editor Development => Topic started by: Dave Gilbert on Tue 02/08/2016 21:54:05

Title: Feature request - automatically add common functions to room script
Post by: Dave Gilbert on Tue 02/08/2016 21:54:05
Specifically room_AfterFadeIn() and room_Load(). I know I can easily click on the event buttons to create them myself, but since both functions are used in 99% of all cases it would save a tiny bit of time if they were automatically added. Would such a thing be possible?
Title: Re: Feature request - automatically add common functions to room script
Post by: Crimson Wizard on Tue 02/08/2016 22:07:34
Dave, have you tried creating room template? You can make a dummy room with those script functions, or anything else, create a template of it, and then use it to create all your new rooms.
Title: Re: Feature request - automatically add common functions to room script
Post by: Dave Gilbert on Wed 03/08/2016 12:03:16
I didn't know such a thing existed. I will look into that. Thanks!
Title: Re: Feature request - automatically add common functions to room script
Post by: Crimson Wizard on Wed 03/08/2016 12:35:27
If you right click on a room there will be "Export as template" command. You name the template and save it. From now on you can choose that template when you are creating new room. There is actually a list of room template icons in the "New room" menu - where you also select room's number.
Title: Re: Feature request - automatically add common functions to room script
Post by: Dave Gilbert on Wed 03/08/2016 14:59:28
Just sussed it andand HOLY CRAP I can't believe I've never noticed this feature before now. Staring me right in the face for... I don't know how long. Thanks for letting me know!