One more suggestion

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

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

One more suggestion

Postby Lyberodoggy » Mon Sep 29, 2008 8:04 pm

It would be nice to have an ExecuteScript function or procedure in our disposal to use with a plugin for example... It would be a great feature in a future update...

I know I 'm a pain in the neck 8)
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby GM-Support » Mon Sep 29, 2008 9:57 pm

What do you mean exactly? Isn't that possible already with the "CreateTimedEvent" function?
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby mercedes » Tue Sep 30, 2008 12:13 am

Hey kiddo..~..Are you speaking of one of those "Automatic" features..where it executes the script for you..I think there's a topic here somewhere about this..something to do with, another game engine, that has this function..Basically where the user may enter, "Action"--and a list comes up of possible actions you can preform..

If not..hey that would be cool..:D

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Lyberodoggy » Tue Sep 30, 2008 11:46 am

Well Chromegloss, as you will see if you examine the plugin I already used that way to execute script.

By execute script I mean give some script as text and have it executed. It's useless in the common usage of AM but very usefull when creating plugins.
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Chromegloss55 » Tue Sep 30, 2008 5:34 pm

Yes I've seen it!

Good call too.

I may be tempted to remove the 'Go To Frame' feature. But then again, it seems a bit mean for people who don't know how to script, so I'll probably leave it in.

Anyway...

It's actually a very useful little technique, so I'll just post it here:

Code: Select all
If scripttoexec <>"" then Action.CreateTimedEvent Time, scripttoexec,False


Where Script is a variant variable of subtype string and Time is a variable an integer or a numeric subtype of a variant.

I'm not sure if there's another way to do it, but that way seems perfectly fine...
_________________
Ultram Rehab Forum
Last edited by Chromegloss55 on Wed Feb 25, 2009 12:57 am, edited 1 time in total.
Chromegloss55
Forum Master
 
Posts: 630
Joined: Sat Nov 03, 2007 2:49 pm
Location: God Knows!

Postby Lyberodoggy » Tue Sep 30, 2008 10:45 pm

yep. I prefer to enter time in milliseconds and divide by 1000 so that the user can have timed events of less than a second:

If scripttoexec <>"" then Action.CreateTimedEvent (Time/1000), scripttoexec,False

If I set time to 100, the event will be:
If scripttoexec <>"" then Action.CreateTimedEvent 0.1, scripttoexec,False

The lowest value is 10.
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Chromegloss55 » Tue Sep 30, 2008 11:53 pm

The highest value is 29 (I think)...
_________________
Vaccinations Forum
Last edited by Chromegloss55 on Wed Feb 25, 2009 12:57 am, edited 1 time in total.
Chromegloss55
Forum Master
 
Posts: 630
Joined: Sat Nov 03, 2007 2:49 pm
Location: God Knows!

Postby Lyberodoggy » Wed Oct 01, 2008 11:55 am

you mean 29000? It's in ms...
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests