Run code stored in a variant variabel

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

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

Run code stored in a variant variabel

Postby Rooster » Thu Mar 09, 2006 12:47 pm

Hi!

Is there any way to run code which is stored in a variant variabel from the advanced-section part of a hotspot? I'd like to avoid using action.createtimedevent .

Best Regards

Rooster
User avatar
Rooster
Active Member
 
Posts: 70
Joined: Wed Oct 13, 2004 1:42 pm
Location: Sweden

Postby GM-Support » Sat Mar 11, 2006 2:21 pm

Hi Rooster,

Yes, that is possible. Just use the "Eval" function.

Here is an example:

Code: Select all
MyVariable = "MsgBox(""test"")"
eval(MyVariable)


Best regards,
GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests