Btw: I hate it to log in every time the connection was disconnected for a little while... :-( This "keep logged in" button doesn't work here.
@ Machtnix: I don't understand what you are saying / asking. Could you provide some screenshots or a diagram or something to help explain what you are wanting to do?
OK. It's hard to me to explain a complicated problem in English I not even describe well in German... ;-) You see the screenshot. The player starts the game and there are 25 closed fields and an open stack (No. 26) which is the "parking place". After one mouse click every cover will be open and the player finds a piece of pipe hidden before. That works. After the second click the pipe will be exchanged with the stack. So thats the given situation now after opening some covers.
To connect the pipes before the liquid reaches the pipe the player has to change No 1 with the stack No 26. Its - fortunally - the right one he need, but mostly the player has to change a lot in and out to get the right jigsaw into the right slot. In this case he want to go down with Pipe No 26. Of course he could change No 6 with 26 and then with No 1 to build a straight pipeline. Both is possible.
On the stack object are three variables with the values of the ID of the jigsaw which is laying on, the old position - that's the object name the character is set to - where the jigsaw was laying before and an empty "parking" variable. You know? x=y, y=z, z=x.
The player clicks on No 1. Now I must read out and save the assigned object of No 1 and the ID of the jigsaw there (it's absolutely No 12, maybe). After clicking the No 1 jumps to No 26 and vice versa. I need the object's name to give the target to No 26 it has to jump to. He don't know the way, don't he? I prefer object names instead of absolute positions, I only need ONE value. As a game developer you can fill in this object, but I don't know the script data structure of Vis which can do the same.
After exchanging the three values will be overwritten with the new datas: there are object's name No 1 and jigsaw ID No 12 on the stack now.
OK, maybe the player wants to connect the pipe now with No 8 (the standing one). He clicks on No 8 and I need to get two values like before: the object (No 8) and the ID (this pipe may have the ID 4 - it depends how I have sorted the pieces on the scene. I need the IDs later to check the correct closed connection). No 8 jumps to No 26 and vice versa. On position No 8 is ID No 12 now (you remember?). Then the script overwrite the stack variables.... and so on.
Of course I can look after the mouse position and get the object's name which is down under. But it seems very complicated to me. I only need the name of the object all jigsaws are "docked on". In the Vis editor it's the object to which the character is assigned. There are two actions: "set to object" and "walk to object". That works. I have 49 objects (to explain why 49 is too much now...). There are arranged in a raster. That's all.
I need something like this - on mouseclick:
Value x = getNameofAssignObject ()
Value y = getNameofCharcter ()
So I tried some which looks similar to that but I can't see if it works or not... sometimes the Vis player is frozen... so that wasn't all right. I don't know anything about Visionaire inside...
Machtnix