| 10-22-2007, 10:10 PM | #1 |
Yes, i have searched the forum, thoroughly. In all the threads i found, the hidden spellbook always had the abilities in it from the beginning. Is it not possible to use "Unit - Add (Ability) to Unit" or something of the like, so that an ability is added to the spellbook during the game? In GUI! |
| 10-22-2007, 10:18 PM | #2 |
Add Ability to Unit adds the ability to the unit, not the spellbook. |
| 10-22-2007, 10:22 PM | #3 |
Here's a pearl of wisdom: If you want a unit to have a hidden passive ability, you can use the Disable Ability for Player function to disable that ability. It doesn't need to be in a spellbook! Disabling it just removes the player's ability to see and use the ability. Passives trudge on without requiring active use. |
| 10-22-2007, 10:25 PM | #4 |
Add a disabled spellbook containing the desired spell to the unit. The disabled spellbook must have the same order id as an enabled spellbook on the unit. EDIT: It seems I mistook your question. Luckily Panto answered the question you actually asked. There is no way to actually add an ability to spellbook, though the hax I gave would appear to do so. |
| 10-23-2007, 01:29 AM | #5 |
Perhaps this will help: http://www.wc3campaigns.net/showthread.php?t=80186 It's a demo map. It's Vexorian's famous 2 spell book experiment; it will explain the inner working of the spellbook. --- By the way, its possible to add the ability, however, you must add the spell book containing the ability, not the ability itself. |
| 10-23-2007, 03:28 AM | #6 | |
Quote:
|
| 10-23-2007, 04:15 AM | #7 | |
Quote:
But Panto, will that disable the passive's effect itself? |
| 10-23-2007, 10:29 AM | #8 |
It won't if Panto says it won't. That would explain why when I disabled pheonix fire it still worked...grrr... |
| 10-23-2007, 11:48 AM | #9 | |
Quote:
Try disabling warstomp for a player and then use jass to issue warstomp order to a unit ![]() |
| 10-23-2007, 11:32 PM | #10 |
Goodie. Now I don't have to fear using Disable Ability and think it no longer works. It solves some problems for dummy passives. |
| 10-24-2007, 12:08 AM | #11 | |
Quote:
Huh? did i do something wrong? I did not get the results you stated... I used a mountain king and an archmage. The mountain king learned bash (100% to stun) and the archmage learned brilliance aura. I ordered the mountain king to attack the archmage and disable bash and brilliance aura. The archmage's brillance aura is no longer visible and no longer effect; same effect for the mountain king's bash - no longer stun or activates. Am i doing something wrong? --- Well i did another test with disabling avatar and ordering the mountain king of activate the avatar; no activation of the avatar and the button disappeared. --- I did another test. I wanted to see what happen when you remove the 'Amov' and 'Aatk' ability (move and attack ability). Strangely enough, the buttons did not disappear, however, the player lost the move, patrol, and attack-move controls (and possibly stop and hold position). Enabling the two ability reset everything back to normal. |
