Hey I'm trying to make an interactive talking system, yoou select the option in the list box for the thing you wanna say. You say it the computer responds and new options are placed. For some reason though when i try to remove all dialog list items, it gets really confused, and for some reason activated the trigger twice. and the list box doesnt show up at all. When i disable the Remove all List Items trigger it works, but then the old options arent erased, which obviously wont work. So i tried instead of using that action instead destroying the dialog item creating a new one and setting it to the same old variable. Again it does the same thing. Any help?
heres the trigger:
List Item Changed
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Changed Selection
Local Variables
Conditions
Actions
Dialog - Hide (LOG) LOG Dialog for (All players)
Camera - Make the camera look at (Position of (DAL) Main Character) for player 1 over 2.0 seconds with Existing Velocity% initial velocity, 10.0% deceleration
General - Wait 0.5 Game Time seconds
Play (LOG) Response Sound[(Selected list item of (LOG) Choices Box Dialog Item for 1)] with subtitle of (LOG) Response message[(Selected list item of (LOG) Choices Box Dialog Item for 1)] and set portrait on to False with the model No Game Link
Variable - Set Prot/Zerg Local = (Prot/Zerg Local + Prot/Zerg Response[(Selected list item of (Used dialog item) for 1)])
General - If (Conditions) then do (Actions) else do (Actions)
If
(LOG) Response to Response Trigger[(Selected list item of (Used dialog item) for 1)] == Last Message
Then
(LOG) Close LOG()
Else
Camera - Make the camera look at (Position of (LOG) Target Unit) for player 1 over 2.0 seconds with Existing Velocity% initial velocity, 10.0% deceleration
General - Wait 1.0 Game Time seconds
Dialog - Remove all items from (LOG) Choices Box Dialog Item for (All players)
Trigger - Run (LOG) Response to Response Trigger[(Selected list item of (LOG) Choices Box Dialog Item for 1)] (Check Conditions, Wait until it finishes)
Play (LOG) Target Sound with subtitle of (LOG) Target message and set portrait on to False with the model No Game Link
General - If (Conditions) then do (Actions) else do (Actions)
If
Last Message == True
Then
(LOG) Close LOG()
Else
Dialog - Show (LOG) LOG Dialog for (All players)
Dialog - Set (LOG) Last Message Dialog Item text to (LOG) Target message for (All players)
It references seveeral triggers so ill attach the map as well
Hey I'm trying to make an interactive talking system, yoou select the option in the list box for the thing you wanna say. You say it the computer responds and new options are placed. For some reason though when i try to remove all dialog list items, it gets really confused, and for some reason activated the trigger twice. and the list box doesnt show up at all. When i disable the Remove all List Items trigger it works, but then the old options arent erased, which obviously wont work. So i tried instead of using that action instead destroying the dialog item creating a new one and setting it to the same old variable. Again it does the same thing. Any help?
heres the trigger:
List Item Changed
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Changed Selection
Local Variables
Conditions
Actions
Dialog - Hide (LOG) LOG Dialog for (All players)
Camera - Make the camera look at (Position of (DAL) Main Character) for player 1 over 2.0 seconds with Existing Velocity% initial velocity, 10.0% deceleration
General - Wait 0.5 Game Time seconds
Play (LOG) Response Sound[(Selected list item of (LOG) Choices Box Dialog Item for 1)] with subtitle of (LOG) Response message[(Selected list item of (LOG) Choices Box Dialog Item for 1)] and set portrait on to False with the model No Game Link
Variable - Set Prot/Zerg Local = (Prot/Zerg Local + Prot/Zerg Response[(Selected list item of (Used dialog item) for 1)])
General - If (Conditions) then do (Actions) else do (Actions)
If
(LOG) Response to Response Trigger[(Selected list item of (Used dialog item) for 1)] == Last Message
Then
(LOG) Close LOG()
Else
Camera - Make the camera look at (Position of (LOG) Target Unit) for player 1 over 2.0 seconds with Existing Velocity% initial velocity, 10.0% deceleration
General - Wait 1.0 Game Time seconds
Dialog - Remove all items from (LOG) Choices Box Dialog Item for (All players)
Trigger - Run (LOG) Response to Response Trigger[(Selected list item of (LOG) Choices Box Dialog Item for 1)] (Check Conditions, Wait until it finishes)
Play (LOG) Target Sound with subtitle of (LOG) Target message and set portrait on to False with the model No Game Link
General - If (Conditions) then do (Actions) else do (Actions)
If
Last Message == True
Then
(LOG) Close LOG()
Else
Dialog - Show (LOG) LOG Dialog for (All players)
Dialog - Set (LOG) Last Message Dialog Item text to (LOG) Target message for (All players)
It references seveeral triggers so ill attach the map as well