| 08-03-2004, 05:29 AM | #1 |
Could someone tell me how I could make a party in a map im makeing, first off i need to know how to turn off group xp shareing right off. Then I want to make it so if your a player says "-create party" then a leaderboard pops up with just his name in it and a status "Party Leader" then he can type "invite red" or anyone else and then they need to type "-accept" after that there name is added to the leaderboard. So once people are in the same partys xp shareing is enabled and vision is shared aswell. So.. how do i do this? lol |
| 08-03-2004, 04:45 PM | #2 |
I'm not exactly sure so bear with me here, i can give some hints/ideas You could use playergroup variable for this, like when i player is invited and accepted he is added to a playergroup to make things easier, then you make some actions that add things to the leaderboard based off whos in the playergroup(s). visisbility could be done by creating a modifyer an setting the region around the units in the party, or you could make them be allies and that should share visisbility. For invties you could try Code:
Events
Player - Player 1 (Red) types a chat message containing (-Invite + (Name of Player 2 (Blue))) as An exact match
Conditions
(Player 1 (Red) is in (Party1)) Equal to True
(Player 2 (Blue) is in (OtherPlayerGroup))) Equal to True
Actions
Game - Display to (All players) the text: ((Name of Player 2 (Blue)) + (Has been invited to join the party of + (Name of Player 1 (Red))))Party1 would be the name of the party and OtherPlayerGroup would be a playergroup which contains ALL players NOT in a party, like call it NoParty or something. The conditions may need work, like setting up something to say the inviter has to be the person who makes the party, but this is just an example. Then you would need a wait to give the player time to type -accept. Theres more to be added but I'm not exactly sure how it should be done and i don't have that much time to fool in the editor sorry |
| 08-03-2004, 05:40 PM | #3 |
hmm i tryed something simuliar last night i still need to make it so that the players in the party have shared vision and also the player being invited needs to have a message like game text "(Player's name) has been invited to a party, accept invitation?" and if he types '-accept' then he is in the party. and while were on the supject i need to disable xp shareing but the enable it to everyone in the same partys. Code:
create party
Events
Player - Player 1 (Red) types a chat message containing -create party as An exact match
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled ((Name of (Triggering player)) + 's Party)
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label [Party Leader] and value 0
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label [Party Leader] and value 0 |
| 08-03-2004, 06:09 PM | #4 |
Try using alliance settings. If the player accepts, then make them an ally with shared vision and make them neutral to one another by default. |
| 08-03-2004, 06:14 PM | #5 |
that worked! Thanks so much! |
