scripted delay

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

scripted delay

Postby Tony_LaRocca » Tue Apr 01, 2008 10:10 pm

Does anyone know how to script a delay? For example, if I wanted to make the game pause for a second before carrying out a command.

thanks
User avatar
Tony_LaRocca
Member
 
Posts: 34
Joined: Wed Feb 20, 2008 4:14 am

Postby Lyberodoggy » Tue Apr 01, 2008 10:18 pm

you 'd better use the action.createtimedevent 1(1 second that is),"your vbs code",False for 1 execution of the script or True for continuous execution


please see the vbs language reference in the AM documentation for more...
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Tony_LaRocca » Tue Apr 01, 2008 10:21 pm

thanks!
User avatar
Tony_LaRocca
Member
 
Posts: 34
Joined: Wed Feb 20, 2008 4:14 am

Postby Lyberodoggy » Tue Apr 01, 2008 10:26 pm

You are welcome... Just make sure you post in this part of the forum your problems with scripting... General discussions are for other purposes... :D
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

figured out what I was doing wrong...

Postby Tony_LaRocca » Tue Apr 01, 2008 10:37 pm

For anyone else out there- don't forget the double quotes! for example,
Action.CreateTimedEvent 1, "Action.GoToFrame "computer-room"", False


Gets you an "Expected end of statement" error. The correct way is

Action.CreateTimedEvent 1, "Action.GoToFrame ""computer-room""", False


When all else fails, read the directions :D
User avatar
Tony_LaRocca
Member
 
Posts: 34
Joined: Wed Feb 20, 2008 4:14 am


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests