Capture currentframe to a variable and load problem

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

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

Capture currentframe to a variable and load problem

Postby Kuldur » Wed Apr 02, 2008 5:58 am

Hey all AM tech heads out there,

I'm working on quite an intricate inventory system atm. Which is devoid of the inbuilt AM Inv system because I'm using the Cubic Panorama plugin.

My problem is I am trying to capture a current frame name to a variable and have a button in the inventory when clicked will take me to that current frame that was captured by the variable.. but I'm not sure quite how to enter the script... for example:

'the capture script on every frame is;

current_frame_store = Action.GetCurrentFrameName


Thats not the problem but when I come to recall that frame to load what do I use? This is what I have at the moment..


Action.GoToFrame 'current_frame_store',0.4,2

But wont load 'current_Frame_store' as it has to be a file name and not a variable...

Now, I would use the inbuilt 'go to previous frame' but thats no good when it comes to examing items on another frame from my inventory. Because then I get stuck and it cycles between frames of the inventory rather than exiting back to the game frame that was caputred with the variable...

Any ideas would be most appriecated...
Kuldur
Junior Member
 
Posts: 9
Joined: Tue Apr 01, 2008 5:04 am

Re: Capture currentframe to a variable and load problem

Postby GM-Support » Wed Apr 02, 2008 4:38 pm

Hello,

Kuldur wrote:Thats not the problem but when I come to recall that frame to load what do I use? This is what I have at the moment..
Action.GoToFrame 'current_frame_store',0.4,2
But wont load 'current_Frame_store' as it has to be a file name and not a variable...


Just use the following code, and it should work (without the quotes around current_frame_store):
Code: Select all
Action.GoToFrame current_frame_store,0.4,2


Kuldur wrote:Now, I would use the inbuilt 'go to previous frame' but thats no good when it comes to examing items on another frame from my inventory. Because then I get stuck and it cycles between frames of the inventory rather than exiting back to the game frame that was caputred with the variable... Any ideas would be most appriecated...


You can use the freePlugin for going back from a multi-page inventory or help that you can find here.

By the way, if you analyse how the plugin works, it works exactly as you described.

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

Postby Kuldur » Thu Apr 03, 2008 11:40 am

Excellent, Thanks for that.. I knew I wasn't too far off...

Kuldur
Kuldur
Junior Member
 
Posts: 9
Joined: Tue Apr 01, 2008 5:04 am


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests