| 10-04-2003, 03:50 AM | #1 |
How can i make a dialog box to set the difficulty of my map ... based on the handicap trigger or something if you think is better ??? Something like i can choose a difficulty level and i want it based on voting system. Can any help me plz? thx:bgrun: :( emote_confused Can you explain all i have to do to do it ? |
| 10-04-2003, 04:50 AM | #2 |
Here's a link to a dialog tutorial map http://www.wc3campaigns.com/forums/s...&threadid=2408 I don't know about the level of difficulty... and I'm not 100% clear on what exactly you're trying to get to happen... but I would first try to get the players to be able to vote and display their votes to one another... if that is what you're trying to do... and setting the level of difficulty will probably be the easy part. |
| 10-04-2003, 05:20 AM | #3 |
Did you already played Enfo's Team Defence ...? When you start you choose the difficulty level i think its a vote sytem with a dialog used ??? do i'm right ? |
| 10-04-2003, 06:25 AM | #4 |
Ok ill take a swing at it but im tired so its might be missing a lot of details. Votecount = Integer Variable Vote = Dialog Variable VoteEasy = Dialog Button Variable For the voting you do something like this: Events Dialog - A dialog button is clicked for Vote Conditions (Clicked dialog button) Equal to VoteEasy Actions Set VoteCount = (VoteCount + 1) Then to total the count you do this: Events Time - Elapsed game time is 30.00 seconds Conditions Actions Set VoteCount = (VoteCount / (Number of players)) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions VoteCount Greater than or equal to 1 VoteCount Less than or equal to 2 Then - Actions Player - Set Player 12 (Brown) handicap to 60.00% Else - Actions Do nothing If you have a second button you could make it like "VoteNormal" for normal mode and make it add +3. What this trigger will do will take the total number and divide it by the players so no matter how many players are in the game if will always get a nice low number. Then it checks for what the number is between in which I chose 1 and 2 and sets the computer (brown) to a 60% handicap which means he has 60% of his normal units life. For an Example: Player 1 votes easy = +1 Player 2 votes easy = +1 Player 3 votes noraml = +3 Player 4 votes easy = +1 So that gives you a total of 6 which is divided by 4 since there are 4 players and you end up with 1.5 in which i think it rounds up but im not sure, anyways since this number is between 1 and 2 it sets brown to 60% handicap. |
| 10-04-2003, 06:30 AM | #5 |
well that is a nice little trigger u got there. i wish i could use it but my map has no use for it...dang it! |
| 10-04-2003, 07:10 AM | #6 |
I got a really big problem and i dont know to resolve it. ONLY ONE dialog box appear i triied by all to way to make it appear all (6) but only one appear. how to make it appear more than one dialog choice in a dialog.... |
| 10-04-2003, 04:44 PM | #7 |
What code did you use to create the dialog menu? |
| 10-04-2003, 04:53 PM | #8 |
i know how to set the handicap and stuff... and do also know how to create ur dialogs, since i created the admin mod :/ but u can get handicap stuff after im done with my map.... (less than 2 weeks), u can PM me if u like... but for now i think u got all the help u needed for ur dialogs... |
| 10-05-2003, 10:37 AM | #9 |
ok finnally I found how cos Drado made a little tutorial and i understand more now, but if any can help me about a code i dunno what is In a trigger in Jass i got a code like ''CCdj'' and I dont what kind of code it is, I think it was units or skill code but i didnt found anything about it ??? Can any help ? |
| 10-05-2003, 10:51 AM | #10 | |
Quote:
damn. you got yourself a nice little set of triggers there. simple but effective! i'm using it! |
| 10-05-2003, 11:00 AM | #11 |
I used something similar but a bit modified for 6 different difficulty level and personalized a bit hehe and have the difficulty is set by a dialog box on starting, not the best but it work well, I will have to try it on bnet later.. hehe;) ![]() the for the help. |
