- Joined
- Jun 24, 2024
- Messages
- 59
Hi ho,
it's me. Today i want to ask you about the topic of dialog windows, button creation and using "neutralized" triggers in multiplayer.
I already made myself known to the dialog system with tutorials and posts here but i did not find any good explanation on how to make triggers
with dialog really usable - without making the triggers specific for each and every player.
My current problem with a test map is, that i have a trigger running on a chat command giving simple choices and rewards based on the button pressed,
but when i call the GUI function "Dialog - Clear dialogtext" after the event "Dialog - A dialog button is clicked for dialogtext", the editor does not quite what i want it to.
Either all dialog text gets deleted, even if another player still has the window open or when repeating the trigger, the choices get shown multiple times each.
Here the starter triggers:
My wild guess is i have to make it MUI or save something for each player.
Would i go wrong with making Dialog triggers for each player specifically instead to avoid this?
Best Regards
SMOrc
it's me. Today i want to ask you about the topic of dialog windows, button creation and using "neutralized" triggers in multiplayer.
I already made myself known to the dialog system with tutorials and posts here but i did not find any good explanation on how to make triggers
with dialog really usable - without making the triggers specific for each and every player.
My current problem with a test map is, that i have a trigger running on a chat command giving simple choices and rewards based on the button pressed,
but when i call the GUI function "Dialog - Clear dialogtext" after the event "Dialog - A dialog button is clicked for dialogtext", the editor does not quite what i want it to.
Either all dialog text gets deleted, even if another player still has the window open or when repeating the trigger, the choices get shown multiple times each.
Here the starter triggers:
-
Playertypes
-
Events
-
Player - Player 1 (Red) types a chat message containing dialog as An exact match
-
Player - Player 2 (Blue) types a chat message containing dialog as An exact match
-
-
Conditions
-
Actions
-
Dialog - Change the title of dialogtext to Is this a text dial...
-
Dialog - Create a dialog button for dialogtext labelled Yes
-
Set VariableSet dialogbuttons[1] = (Last created dialog Button)
-
Dialog - Create a dialog button for dialogtext labelled No
-
Set VariableSet dialogbuttons[2] = (Last created dialog Button)
-
Dialog - Show dialogtext for (Triggering player)
-
-
-
button 1
-
Events
-
Dialog - A dialog button is clicked for dialogtext
-
-
Conditions
-
(Clicked dialog button) Equal to dialogbuttons[1]
-
-
Actions
-
Player - Add 1000 to (Triggering player).Current gold
-
Dialog - Clear dialogtext
-
-
My wild guess is i have to make it MUI or save something for each player.
Would i go wrong with making Dialog triggers for each player specifically instead to avoid this?
Best Regards
SMOrc