| 04-01-2007, 12:12 AM | #1 |
Topic sums it up ![]() |
| 04-01-2007, 12:51 AM | #2 |
I'm sorry, but just because you make a statement about what you are talking about, and then sticking a question mark after it, does not make it a question. You need to be more specific. What about the Cancel hero Abilities Button do you want to modify/know? |
| 04-01-2007, 01:58 AM | #3 |
I presume he wants to know how to detect when it it pressed. |
| 04-01-2007, 10:09 PM | #4 |
I had to rush out when I was creating topic, sorry about the lack of words, heh. What I want is to make a dialog menu appear when you click on the hero skills ability and to close the skill selection as well. The skill that I put on the hero is a dummy spell to make the skill selection menu appear. I tried seeing if there was an order given to the unit when he opens the skills menu but that doesn't seem to be the case. But after writing this I found out that I can simply use a dummy summoning spell or something to start the dialog... ![]() |
| 04-01-2007, 11:43 PM | #5 |
Well, i'm not sure you can do it for multiplayer, but if your using single player then theres the event: Trigger: Events
![]() Game - The 'Hero Abilities' button is clickedI'm not sure if it works for multiplayer but i doubt it, if it does, it will set triggering player, so you can see whos clicked it. |
| 04-01-2007, 11:51 PM | #6 | |
Quote:
I may not be making myself clear. I want part of a trigger's actions to close the hero's skill selection. I already know of the Game - Hero ability pressed event. |
| 04-02-2007, 12:24 AM | #7 |
perhaps ypu can do that by deselecting and then reselecting the unit edit1: no it doesnt work -.- edit2: there should be a way to do it via the orderid ..but we would have to know it -.- |
| 04-02-2007, 01:18 AM | #8 |
Idk the OrderId, but you COULD do this Store the hero in the gamecache. Remove the hero. Bring him back from the gamecache. Select the hero. That will basically make the exact same hero but you will have just selected him. |
| 04-02-2007, 10:29 AM | #9 |
Force the player to press Esc. This works for everything, i'v used it before. Say, um, you dont want anybody to leave, you could have a trigger that runs every 0.01 seconds, and force the Esc key, so when a player clicks the dialog, it automaticly closes, whenever you try and quit, the dialog comes up, and it closes, so your stuffed. The only way is to close wc3's process. So this without a doubt will work for skill menu. Use the action: Trigger: Actions
![]() Game - Force Player 1 (Red) to press Escape/Cancel |
| 04-02-2007, 03:40 PM | #10 |
I'm now having a couple of problems. One is that the maximum number of skill points you can gain equal to the number of skill points required to max out the unit's abilities, though I can manually increase it through triggers by a Hero Levels event and the Hero Add Skill Points action. Even if I make an ability so the skill points shows w/o using triggers you still can select the ability before it closes via triggers. If you do force a Esc key press every .01, many commands are left out, like click and drag, patrol/attack-move, selecting units (can F1 to select heros), and even quitting the game w/o using Ctrl+Alt+Delete to get it closed. --- So do you think the best choice is to simply add skill points through triggers and make the dialog show when you press the ability button (cancel the press followed by showing dialog)? |
| 04-02-2007, 04:08 PM | #11 |
orderid would be best ..but since noone knows the orderid of that cancel button (at least i assume that) ...YES |
| 04-02-2007, 06:00 PM | #12 |
851976, there is only one cancel order. (Though I never tried it for this one) > Game - The 'Hero Abilities' button is clicked There is a small problem with this event, last time I checked it didn't set a triggering unit, or even only a triggering player... |
| 04-02-2007, 06:18 PM | #13 |
you call that a "small" problem -.- it will be quite difficult to fix the problem then .. +the OrderId doesnt work for that BattleBotv8.2...is your Map a Multiplayer map ? when yes can a player have more than one hero ? |
| 04-02-2007, 08:10 PM | #14 | |
Quote:
Right now I'm working on an RPG system that I want to release and maybe make a map out of it. It's a good way for me to remember how things work, but of course I still need help from WC3C At the moment I'm trying to make it so it will be easily modified for multiplayer use as well as singleplayer. The main hero you start with moves around the map while the mercanaries (Max group of 3 ATM counting main hero) stay in a secluded area unless it's either a battle or inside a building (Where you can train). For now I set the main hero as UnitVariable[1] and then the first guy you hire to UnitVariable[2] and I think you can guess which number the third hero is. When I do a trigger that related to a specific hero I set UnitVariable[4] to (Triggering Unit) or what ever I need. I use that since what skills you can train depend on the unit-type and which talent tree you select (Warrior/Spell Sword/Mage). |
