Merged Indexes

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

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

Merged Indexes

Postby Lyberodoggy » Mon Mar 24, 2008 9:57 pm

Is it possible to get the number of more than one merged hotspots/texts with the Action.GetMergedHotspotIndex and Action.GetMergedTextIndex?
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby GM-Support » Wed Mar 26, 2008 1:38 am

Hi,

The functions return the index of the first merged hotspot (or text), but you can easily get the next ones by adding 1, 2, 3, etc. because they are in sequence.

Here is an example. Let's say you are adding the 4 hotspots of the frame M to those of the frame A.

If you are on the frame A and you want to access the 4 hotspots of the frame M, just call:
Code: Select all
Action.GetMergedHotspotIndex
Action.GetMergedHotspotIndex + 1
Action.GetMergedHotspotIndex + 2
Action.GetMergedHotspotIndex + 3


Does it make sense?

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

Postby Lyberodoggy » Wed Mar 26, 2008 7:10 am

Yes GM thank you very much (I couldn't think of it but it's brilliant!)
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

cron