| 07-13-2006, 11:28 AM | #1 |
ok, i have made a item that based on incarnation, and i wish to add a ms bonus via dummy when a unit is revived, the problem is... it seems i cant detect incarnation via trigger... *begin effect of ability* *start casting, end casting, begin chanelling* *uses an item* all dont work =_=" need some help !! thx alot ![]() |
| 07-13-2006, 12:13 PM | #2 |
Sorry, but you can't detect Reincarnation (spell or item) by using those events. You can't neither use the generic event "A Unit Dies" because it won't fire if the unit has Reincarnation. You will have to use the specif unit event "A unit HP is below XXX" where XXX should be 0 or something near 0 (then you can check if the unit is alive [it has reincarnation] or not). The problem is that if you are not familiar with JASS it will be difficult to create such dynamic triggers. You have two possibilities: 1) Learning JASS (Recommended, since if you are quite familiar with another programming language it will not be difficult); 2) Create an eventless trigger and then use the GUI event "Trigger Add Action", so you can use normal variables with the specific unit events (for example "XXX unit takes damage"), but to make multi-instanceable spells you'll have to work with units-arrays and so on. I hope it helps. Cheers. |
| 07-13-2006, 01:23 PM | #3 |
Trigger: Something like that should work if you're using GUI. Notably this is a trigger question and should have gone in the Trigger Forum. |
| 07-13-2006, 02:14 PM | #4 |
um... thank alot, i guess it helps abit :) i tried to learn JASS but seriusly... i guess with my basic programming language cant help me much in learning it >_>" i've read some vextorian JASS tutorial but i just found myself lost in the middle of the tutorial ~_~" |
| 07-13-2006, 06:26 PM | #5 |
Then feel free to ask question about what confused you in the tutorial :). Arcanister made a script that detects reincarnation using JASS, Vex later made an improved version of it [correct me if I'm wrong]. That would probably work, but well, it requires JASS. |
| 07-18-2006, 05:05 PM | #6 |
ok finally, thanks guys, the trigger worked, i make a trigger that check every 7 second on all user of the reincarnation item, then when the user hp = 0, it activate another trigger that check every 0.25 sec on the 0 hp user, when hp > 0, then there we go the action i needed 1 more question : is it possible to detect the spells from the lighitng orb autocast ? e.g. i make a auto cast mana burn that based on lighitng orb, can i detect the mana burn when it activate ? |
| 07-18-2006, 07:45 PM | #7 | |
Quote:
|
| 07-19-2006, 10:33 AM | #8 | |
Quote:
ya know the lighning orb(new) ability ? it allow a target spell to be added into a orb effect and u can set a chance for the orb to activate so the spell i put in now is the mana burn spell, lets say i set the probability of auto cast = 20% so now if i have the item with this orb effect, i'll have 20% chance to burn enemy mana when attacking, now my problem is, i want to detect the autocast to add some sub-effect of the skill anyway, the flamingarrow autocast stuff did help me in another part of my map XD ![]() |
| 07-19-2006, 01:07 PM | #9 | |
Quote:
- You will see the disable icon of the used ability, no matter what you do; - You cannot detect when your Mana Burn starts because the events "A Unit starts the effect of an ability" or such things won't work with that ability. - There is also a great bug about that ability: if the unit autodetects a target and attack it, the orb ability will never fire. That's all, so I strongly suggest to use some other abilities (if you don't want to use JASS, use dummy casters or something similar). I hope it helped you. P.S: forget about dummy casters, I have a great idea for you if you don't want to use JASS. Use the Orb you mentioned but with the ability Illusion or such. On this way you can detect when the attack takes place using "A unit spawns a summon" (it's not its exactly name). |
| 07-19-2006, 01:44 PM | #10 | |
Quote:
on my way to the trigger !!man... im quite sure if these were made in JASS it will save quite alot of trouble =_=" |
