This forum is meant for requesting technical support or reporting bugs.
Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
by Lyberodoggy » Sat Aug 02, 2008 7:20 pm
I was working on my plugin Random Events to enchance it and I realised that the GetVariableReferenceFromName function isn't working properly.
Please help, I need to fix it ASAP
-

Lyberodoggy
- Administrator
-
- Posts: 2526
- Joined: Sat Feb 17, 2007 3:31 pm
- Location: Athens
by Lyberodoggy » Mon Aug 04, 2008 10:36 am
Sorry for bumping the post but that's the only way to get you attention.
Please stop ignoring me... Someone help me with the reference function. It doesn't work as it should...
-

Lyberodoggy
- Administrator
-
- Posts: 2526
- Joined: Sat Feb 17, 2007 3:31 pm
- Location: Athens
by ShadowHunter » Mon Aug 04, 2008 11:24 am
Hi Lyberodoggy,
I had no succes either when I tried make an array using the GetVariableReferenceFromName some time ago.
Please ask GM cause I don't think many people tried it hence the low feedback.
With best regards,
ShAdOwHuNtEr
-

ShadowHunter
- Forum Admin and Games Page admin
-
- Posts: 1304
- Joined: Fri Jun 06, 2003 10:37 pm
- Location: Belgium
-
by GM-Support » Fri Aug 08, 2008 6:55 pm
Hi,
Fortunately it is only due to a mistake in the help document, not in AM itself.
Instead of the following code:
- Code: Select all
Dim Y
Set Y = GetVariableReferenceFromName("MyGlobalVariable")
Y = 1357
please use the following code (note the ".Value" in the third line):
- Code: Select all
Dim Y
Set Y = GetVariableReferenceFromName("MyGlobalVariable")
Y.Value = 1357
Regards,
GM-Support
-
GM-Support
- Forum Admin and Games Page admin
-
- Posts: 2221
- Joined: Thu Jun 05, 2003 7:52 pm
-
by Lyberodoggy » Fri Aug 08, 2008 7:12 pm
thanks!
-

Lyberodoggy
- Administrator
-
- Posts: 2526
- Joined: Sat Feb 17, 2007 3:31 pm
- Location: Athens
by Chromegloss55 » Fri Aug 08, 2008 9:30 pm
I think I asked about global arrays a few months ago. Local arrays are practically useless. Is there not away they could be integrated into the next update of AM?
_________________
Confucianism Forum
Last edited by
Chromegloss55 on Tue Feb 24, 2009 3:24 pm, edited 1 time in total.
-
Chromegloss55
- Forum Master
-
- Posts: 630
- Joined: Sat Nov 03, 2007 2:49 pm
- Location: God Knows!
by GM-Support » Sat Aug 09, 2008 11:38 am
Hi,
Global arrays are in the to-do pipe.
In the meantime, if the array is made of strings, you can convert it to a single variable and then convert it back to an array by using the Split and Join functions, as explained in the following thread:
http://www.adventuremaker.com/phpBB2/vi ... php?t=3635
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