| 01-01-2006, 04:55 PM | #1 |
HI! :( I feel embarrassed. I can't figure out how to disable the right click function on this ability. How do I stop the user from right clicking the spell adn enabling that stupid little golden swirly thing around th eedges? I want to make a custom healing spell that heals for each mana spent and spends mana for each point healed. I figured it'd just save a lot of time to use Replenish life/mana from the night elf moonwells. However, Replenish Life and Mana has a right click function. Do I have to use special encoding to remove it? Cause I can't figure out where it is in the UI of the regular world editor. If I have to use the special encoding can u pls tell me where? thank you very much. I am sure this is very simple task, but after this past week of fooling around with triggers my brain is fried :( Kevin |
| 01-01-2006, 05:50 PM | #2 |
U cant remove autocast from autocast abilities. Just trigger it. |
| 01-01-2006, 06:07 PM | #3 |
well I can turn auto cast off just fine. The problem is I just can't prevent the user from "right clicking" on the ability itself. See here's the deal. I disabled the casting autocast of autocast. So when the USER right clicks the only thing it does is "change icons" and add that swirly golden graphic. It's purely an astetic problem I have here, I just want to disable the golden swirly graphic. How do I use a trigger to stop the "right click" or disable the "swirly golden graphic" ? If I can't then it's all cool, I'll just enable autocast again. It doesn't alter gameplay **that** much. |
| 01-01-2006, 06:28 PM | #4 |
And iNfraNe just told ya that in order to disable the right click you have to base your spell off a non-autocastable. That's the only way! |
| 01-01-2006, 07:12 PM | #5 | |
Ok wow, you guys need to chill and I mean big time: Quote:
1. That is what he said above. 2. the term "Autocast" is very very very very different from right click effect function. Go to the world editor if you don't believe me. Autocast is the artifical intelligence scripting that analyzes surrounding units and makes the unit take action. You can disable autocast by changing the time interval to 0. Disabling Right Click function is not the same as disabling "autocast". 3. I'm just trying to ask for help how to figure out to do it. Just saying, make a trigger, is not explantory or helpful in anyway shape or form, and giving me gruff over not understanding a 1 sentence explanation is real irritating. I have enough stress trying to get this to work, I don't need snide comments from the peanut gallery. Are you telling me to create a dummy spell that doesn't have auto cast? Interrupt it with a trigger that then has the unit cast the replenish life/mana? That won't work, why? because I have to alter replenish life/mana so it doesn't replenish mana. You cannot use a trigger function to order a unit to cast a custom spell. I've tried basing this spell off a non-autocastable, but here's the problem: 1 there is no non-autocastable healing type spell that spends 1 point of mana for 1 point of HP healed (and vice versas). The only healing spells that I can find without autocast are rejuvination and holy light, and I can't get either of those to work on a hp/mana ratio. You know what, just forget it. I'll just keep this spell with autocast, it's obvious there is no way to do it without writing up a new spell from scratch. IF there is, then nobody seems to know how to do it. |
| 01-01-2006, 08:39 PM | #6 |
This is a VERY simple problem. Make an ability that by default does not use Autocast (right-clicking), like Channel. Now create a trigger that, when that ability is used, creates a dummy unit (invisble, no move speed, etc etc) That unit then casts the normal ability that HAS autocast. Since the dummy is not controlled by the player, the autocast is not a problem. No difficult triggering there, GUI will work just fine. |
| 01-01-2006, 08:43 PM | #7 |
Yes, kevin, that rightclicking is known as "autocast" nowadays. If you hold your mouse over the ability it says "right click to autocast". There is no need to repeat yourself 3 times. |
| 01-02-2006, 03:20 AM | #8 |
:) it's entirely wrong to call right clicking the autocast function. It's like calling "pointer functions" "bookmarks". They are different functions, and when I tried to explain that I get spit in my face. It is rude and there is no excuse for that kind of attitude. So Apparently, I did have to explain that. Like I said, it doesn't matter. It barely effects gameplay to have autocast on. I was only irritated by the swirly golden graphic. If I knew the jass/java ORDER command for Autocast, then I can set the unit to "stop" when issued the right click command. I mean, that command HAS to exist in the game otherwise it could not function. i.e. Code:
Untitled Trigger 001
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(autocast_on))
Actions
Unit - Order (Triggering unit) to StopNow I know that autocast is not called autocast_on I can't figure out what it's called. If anyone knows that's great, if not that's fine. Also, if anyone knows how to disable the right mouse button ENTIRELY that'd work too! as for the other very nice person: HI tim!:D Thank you! But, I don't think that solution will work very well with the mod I'm working on. I'd love to show you guys what I am working on but I can't atm. I want to make sure I finish it first. |
| 01-02-2006, 03:33 AM | #9 |
Uh, hi. The suggestion I gave will react just as fast as the normal ability, it makes no sence to do otherwise. Just trust me and try my method before more complex/rediculous measures. Also, right-clicking an ability is considered using 'autocast;' one can refer to the two interchangeably. |
| 01-02-2006, 04:06 AM | #10 |
I'm already pushing the model counts for my maps, and one detect invis will just goof it up. I've done the invisible stalker method for spell alteration and seriously, it's just a lot better to leave auto cast on at this point rather than go that way. Also, I could start calling a dog a cat and it would be as correct as calling right click autocast. The mod I am making doesn't or actually shouldn't use the right mouse button at all, for any function, spell function, movement function, etc.., that's the only reason I asked about disabling right button click. That's going to the extreme though and at this point the extreme just isn't worth it (unless there's a real easy way to do that). |
| 01-02-2006, 07:45 AM | #11 |
Why would you make the unit invisible? Just use the 'Hide Unit' command |
| 01-02-2006, 08:03 AM | #12 |
Or perhaps a Corrupt model file would do.. or just the obvious 1kb Dummy Unit. Really it's not hard to get the job done, and this should be common sense in my eyes. But do what you want, I suppose an 'easily avoidable' ring of autocast wont affect anything. |
| 01-02-2006, 08:04 AM | #13 | |
Quote:
Anyway, Kevin, generating a dummy unit won't do anything reguardless of your model count, as the unit has no model anyway. What do you mean by "and one detect invis"? You do not detect any invisible unit. |
| 01-02-2006, 10:08 AM | #14 |
Well, NONE.mdl is not counted as invisible unit. Try it out. Just add locust and invulnerable to it. and the autocast ability (Set the autocast mana to 0). =) Then order the dummy to cast it on the caster. That will fix your prob. Instead of using another trigger to block the autocast command. It arent that hard. |
| 01-02-2006, 12:28 PM | #15 | |
Quote:
|
