- Joined
- Jan 1, 2011
- Messages
- 1,528
Ok so I've come up with a few problems and I need some clarification.
When doing dialogs is it ok to use local player for the creation of buttons? Or changing the title?
Or an even better question can you modify a dialog and clear/show it locally?
Or if you modify a dialog will it effect all players viewing that dialog?
Well I'm not sure what I'm doing wrong, but I'm hitting some desyncs.
Here is the trigger that I used in an attempt at MPI dialogs.
When doing dialogs is it ok to use local player for the creation of buttons? Or changing the title?
Or an even better question can you modify a dialog and clear/show it locally?
Or if you modify a dialog will it effect all players viewing that dialog?
Well I'm not sure what I'm doing wrong, but I'm hitting some desyncs.
Here is the trigger that I used in an attempt at MPI dialogs.
-
Give
- Events
- Conditions
-
Actions
- Set Player1 = (Triggering player)
- Set Integer1 = (Player number of Player1)
- Set String1 = (Substring((Entered chat string), 2, 9))
- Set Integer2 = (Integer(String1))
- Set Giving[Integer1] = Integer2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Integer2 Greater than 0
-
Then - Actions
- Set String1 = Choose |cff0000ffMi|r|cff99b4d1ne|r|cffadff2fra|r|cffff0000lz|r
- Set String2 = |cff0000ffSaphhirum|r
- Set String3 = |cff99b4d1Diamonite|r
- Set String4 = |cffadff2fEmnizium|r
- Set String5 = |cffff0000Rubinite|r
- Set String6 = Cancle
- Custom script: if GetLocalPlayer() == udg_Player1 then
- Dialog - Clear Dialog
- Dialog - Change the title of Dialog to String1
- Dialog - Create a dialog button for Dialog labelled String2
- Custom script: call SaveInteger(udg_Mineralz,GetHandleId(GetLastCreatedButtonBJ()),0,1)
- Dialog - Create a dialog button for Dialog labelled String3
- Custom script: call SaveInteger(udg_Mineralz,GetHandleId(GetLastCreatedButtonBJ()),0,2)
- Dialog - Create a dialog button for Dialog labelled String4
- Custom script: call SaveInteger(udg_Mineralz,GetHandleId(GetLastCreatedButtonBJ()),0,3)
- Dialog - Create a dialog button for Dialog labelled String5
- Custom script: call SaveInteger(udg_Mineralz,GetHandleId(GetLastCreatedButtonBJ()),0,4)
- Dialog - Create a dialog button for Dialog labelled String6
- Custom script: endif
- Set DialogNumber[Integer1] = 1
- Dialog - Show Dialog for Player1
- Else - Actions
-
If - Conditions