hi.. can i request someone ot ask if someone had ever done somthing like this and would want to share it.. =)
it's an alliance system.. lets say.. a player types create alliance.. then a dialog box opens up and with buttons of all players that the triggering player can have an alliance..
then if the player clicks a button the button's player becomes his ally..
Iv never really done anything of that sort. But heres how u would do it:
First you need to create some variables: Varaible name-----Variable Type-----Initial Value----- blue--------------dialog button--------None----------- brown-------------dialog button--------None----------- darkgreen---------dialog button--------None----------- green-------------dialog button--------None----------- grey--------------dialog button--------None----------- lightblue---------dialog button--------None----------- Mydialog--------------dialog-----New dialog(default)-- orange------------dialog button--------None----------- pink--------------dialog button--------None----------- red---------------dialog button--------None----------- teal--------------dialog button--------None----------- yellow------------dialog button--------None----------- ------------------------------------------------------
Events: Player - Player 1 (Red) types a chat message (containing Alliance Change as An exact match
Conditions:
Actions: Dialog - Clear Mydialog Dialog - Change the title of Mydialog to Alliances Dialog - Show Mydialog for (Triggering player) Dialog - Create a dialog button for Mydialog labelled Blue Set blue = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Teal Set teal = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Purple Set purple = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Yellow Set yellow = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Orange Set orange = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Green Set green = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Pink Set pink = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Grey Set grey = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Dark Green Set darkgreen = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Light Blue Set lightblue = (Last created dialog Button)
Dialog - Create a dialog button for Mydialog labelled Brown Set brown = (Last created dialog Button)
------------------------------------------------------ After this you need to make an event for every player who you want this player to be able to ally with. This is done as follows: ------------------------------------------------------ Events: Dialog - A dialog button is clicked for Mydialog
Conditions: (Clicked dialog button) Equal to blue
Actions: Player - Make Player 1 (Red) treat Player 2 (Blue) as an Ally with shared vision Player - Make Player 2 (Blue) treat Player 1 (Red) as an Ally with shared vision ------------------------------------------------------ And there you have it. Now (if you created it just as i have it) when player red types "Alliance Change" (no quotes, proper case) a dialog box will pop up with the name of every player. If Player one picks "Blue" off this list then player one will become and ally of player two.