| 11-03-2004, 03:09 PM | #1 |
Just as a beforehand note I use WE Unlimited. 1. I'm trying to make an ability that requires your HP be at a certain point ( eg. You need to be at 200 hp or below in order to use it) but can't seem to come up with a way to do so. 2. Is there any way to undo an upgrade? ( eg. Someone has researched Sorc Adept Training for example and then have it be unresearched through a trigger ) |
| 11-03-2004, 03:17 PM | #2 |
1: u could make a trigger with event unit starts casting an ability then have a condition if units hp is GREATER than 200 and add the action unit - stop casting unit. This means it will not cast if his hp is higher than 200. 2: no, there is no way to undo upgrades. |
| 11-03-2004, 03:30 PM | #3 |
Assuming you mean... Untitled Trigger 001 Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Blahblah (Life of (Casting unit)) Greater than 200.00 Actions Unit - Order (Casting unit) to Stop I'v tried this already and it only stops abilites with a target ( as in it targets a point or unit). Spells like summoning and meta don't get stopped. I'v also tried the Advanced Trigger from Unlimited ''Stop Ordered Spell From Casting'' which doesn't really work either as if the player presses the button a few times it goes through. |
| 11-03-2004, 03:37 PM | #4 | |
Quote:
|
| 11-03-2004, 03:43 PM | #5 | |
Quote:
Didn't work :\. |
| 11-03-2004, 04:05 PM | #6 |
maybe disable to ability comepletely then enabling it? use it in the player - disable ability so that way it may cancel all orders and then re-instate the ability? |
| 11-03-2004, 04:11 PM | #7 | |
Quote:
It still uses the ability before being disabled, plus this brings up issues with multiples of the same unit. |
| 11-03-2004, 05:43 PM | #8 | |
Guest | Quote:
You should use Setreal's model if you aren't (as mentioned) doing it with summoning and morphing spells. Otherwise you should use this: Code:
Events: Unit - A unit Begins casting an ability Conditions: (Ability being cast equal to Metamorphis (Could be any other spell) (Life of (Triggering unit)) Greater than 200.00) (This could be any other condition) Actions: Unit - Replace (Triggering unit wÃÂ*th a (Unit-type of (Triggering unit)) using the old unit's relative life and mana That should be it. This can also be used for WE. |
| 11-03-2004, 06:04 PM | #9 | |
replacing it? well that would: 1. deselect it 2. make it forget it's hero abilitys 3. set the level back to 1 ... an idea i have would be to remove th metamorphosis buff from the unit if the ability is cast when it shouldn't. i am not sure if this would work and i am sure that it will cool the spell down and make the unit waste the mana anyway... you can give it the mana back but you can't reset the cooldown of one spell... only of all spells... or is there such a function in WE unlimited? Quote:
i never needed that but i thought it works ... |
| 11-03-2004, 06:07 PM | #10 |
the trick is to pause the unit -ordering it to stop- and to unpause it afterwards. |
| 11-03-2004, 06:36 PM | #11 | |
Guest | Quote:
1. Could VERY easily be solved by triggers by using "select unit for player" 2. Could be stored by integers etc. 3. WRONG |
| 11-04-2004, 12:27 AM | #12 |
Spike - The editor even says that setting it to 0 will not unlearn the research so no. Luzif3r - The pause/unpause actually managed to get summoning to work correctly but unfortunatly not meta. ctb - I'm very hesitant about replacing the unit mainly because it brings up issues if the replaced unit dies (revival issues at the correct building possibly) as well the multiple unit issue (there's no way of telling how many of this hero may be used, there could multiple of them for one player even, so the storing/tracking could get very messy). |
| 11-04-2004, 02:01 AM | #13 |
1. Ussually the agility is like this but im not sure about the strength. 3 Str = X [(hp) (can be set to how much hp equal to)] Every 3 strenght points that add up to the number you want will equal the number of str you want to determine if the hero can learn the ability. (i.e. 200str = 1000hp the hero can now learn "ability.") Isnt there a trigger like that? Or you could just use level to be able to learn the ability. _______ 2. Why not just have the hero not have the ability yet? Or creat a new hero without the ability. I dont know much about editing but this is what i suggest. |
| 11-04-2004, 02:54 AM | #14 | |
Quote:
I think you might be a bit confused, this has nothing to do with learning abilities. |
