| 04-03-2004, 07:55 PM | #1 |
Im a n00b 2 the wc3 editor so humor me k? Well can any one tell me if theres a way that when a dialog button is clicked that 100 gold subtracts from selected players gold and shows that 100 gold added to a leaderboard... iv got most of it i just cant figure it out some 1 plz help. This is what i have so far Events Dialog - A dialog button is clicked for Bankacc Conditions (Clicked dialog button) Equal to d100 Actions Player Group - Pick every player in Player Group - Player 1 (Red) and do (Do nothing) Player - Add -100 to Player 1 (Red) Current gold Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to 0 the underlined i would think you would be able to change it to +100 but theres nothing i can see that would let u... well if some one can eather make the trigger or atleast tell me how to do it id b verry thankfull... |
| 04-04-2004, 04:37 AM | #2 |
You will have to use a variable (dim lights, play scary music). They arent very scary, however. They are just like a way of holding a piece of data. Let me show you how to set one up:
Code:
[color=silver][b]Events [/b]Dialog - A dialog button is clicked for Bankacc [b]Conditions[/b] (Clicked dialog button) Equal to d100 [b]Actions[/b] Player Group - Pick every player in Player Group - Player 1 (Red) and do (Do nothing)[/color] [color=silver]Set variable - leaderboard_gold to leaderboard_gold + 100[/color] [color=silver] Player - Add -100 to Player 1 (Red) Current gold Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to leaderboard_gold[/color] As you can see i set the variable leaderboard_gold to how much gold you have, and then set the leaderboard to that. Not too difficult, eh? And not to be mean, but can you do me a favor? when you post again, dont use dark blue, its almost unreadable unless you select it. |
| 04-04-2004, 04:43 AM | #3 |
Allow negative real numbers in file>preferences. Although, I do believe thats an integer, but you can still try that. |
| 04-04-2004, 04:45 AM | #4 |
Thanks il try it and c wut happens. n ya i noticed it dont show up 2 well so i wont. thx again. |
