Be patient. There are tons of people asking questions on Mapster daily. At this time of day, The EU group is mostly asleep/offline. Bump again in some hours from now, or later, if need be.
Be patient. There are tons of people asking questions on Mapster daily. At this time of day, The EU group is mostly asleep/offline. Bump again in some hours from now, or later, if need be.
Alrighty.
Just a little antsy, because this is the only issue that I really have left to fix in my map before I release it. =P
It just isn't moving it from where the dialog box is originally placed at.
Lets say I created dialog A at (0,0) from the center of the screen.
Then I used the attach dialog to dialog trigger to attach it to dialog B (which is anchored to the center top of screen), offset (0,0) to center from center.
It doesn't do anything. Dialog B will still be at the very center of the screen.
Untitled Trigger 001
Events
Game - Map initialization
Local Variables
A = No Dialog <Dialog>
B = No Dialog <Dialog>
Conditions
Actions
Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Left of screen
Variable - Set A = (Last created dialog)
Dialog - Show (Last created dialog) for (All players)
Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Right of screen
Variable - Set B = (Last created dialog)
Dialog - Show (Last created dialog) for (All players)
General - Wait 2.0 Game Time seconds
Dialog - Move A to (0, 0) relative to Left of B (from Right)
I've got this working when creating a Dialog in one trigger and another in an Action. However, I'm a bit lost when it comes to the two anchors. I'm familiar with what an anchor is, just don't understand how the 2 function together.
If you have one as left and one as right, the left will attach to the right. If you have one as left and one as center, the center will attach to the left.
If you have one as left and one as right, the left will attach to the right. If you have one as left and one as center, the center will attach to the left.
Gotcha. So the first anchor is the point in the upper dialog it should go (top left, center, etc), and the second anchor is the point on the contained dialog which is lined up with the first point.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
For some reason this isn't working for me. I don't know why, or how to make it work.
I've been fiddling around with it now for a while. It just keeps the dialog where it is originally set at.
Can anyone help out?
Thanks!
Anyone? Anything?
I couldn't get it working either. Does anyone know if its broken?
Be patient. There are tons of people asking questions on Mapster daily. At this time of day, The EU group is mostly asleep/offline. Bump again in some hours from now, or later, if need be.
Alrighty. Just a little antsy, because this is the only issue that I really have left to fix in my map before I release it. =P
bump... doesn't seem like anyone knows.
How does it not working ? Be specific. The easiest way is to attach dialog A to dialog B offset by 0,0 to Center from Center
@progammer: Go
It just isn't moving it from where the dialog box is originally placed at. Lets say I created dialog A at (0,0) from the center of the screen. Then I used the attach dialog to dialog trigger to attach it to dialog B (which is anchored to the center top of screen), offset (0,0) to center from center. It doesn't do anything. Dialog B will still be at the very center of the screen.
@Aneth0r: Go
Dialog A is at the center of the screen, and you attach B to A's center... Then B will be at the center of the screen as well.
@Grogian: Go
Erm, I just worded that wrong. I meant the one I am attaching it to is anchored to the top of the screen, offset by (0,0).
@Aneth0r: Go
It worked for me... Can you post your trigger?
Untitled Trigger 001
Events
Game - Map initialization
Local Variables
A = No Dialog <Dialog>
B = No Dialog <Dialog>
Conditions
Actions
Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Left of screen
Variable - Set A = (Last created dialog)
Dialog - Show (Last created dialog) for (All players)
Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Right of screen
Variable - Set B = (Last created dialog)
Dialog - Show (Last created dialog) for (All players)
General - Wait 2.0 Game Time seconds
Dialog - Move A to (0, 0) relative to Left of B (from Right)
@Grogian: Go
Well, I have to have two separate triggers... so my variables aren't local. Otherwise, my triggers are exactly the same...
@Aneth0r: Go
Make sure you're assigning the variables and calling the right ones.
@Grogian: Go
Sorry for the late response... been really busy lately.
I put my two triggers into one, and it worked. The funny thing is, I didn't even change the variables to local.
So apparently you need to have the "Create Dialog A" and "Attach Dialog B to A" in the same trigger to make it work. Which is a little bit crazy.
I've got this working when creating a Dialog in one trigger and another in an Action. However, I'm a bit lost when it comes to the two anchors. I'm familiar with what an anchor is, just don't understand how the 2 function together.
@SiNiquity: Go
If you have one as left and one as right, the left will attach to the right. If you have one as left and one as center, the center will attach to the left.
Gotcha. So the first anchor is the point in the upper dialog it should go (top left, center, etc), and the second anchor is the point on the contained dialog which is lined up with the first point.