| 10-03-2003, 08:49 PM | #1 |
i would like to know how ot make it so when a hero gets a certain item, it turns its damage into Chaos damage, and when item is dropped, back to normal, and if anyone figures out how to, just post it in this topic for everyone to use, this will no doubt require triggers, although i cant find any Conditions for "item is equal to [item name]" so it would most likely require doing it the VERY hard way..through text :( a big thanks to anyone who does it\helps out in finding out how to do it :) |
| 10-03-2003, 09:12 PM | #2 |
I believe this is how they did it in the RoC Orc campaign: Give Unit ability "Chaos (Grom)" what this ability DOES, though, is take the unit and replace it with "Grom Hellscream (Posessed)." Which is an entirely different unit, with the chaos attack type. So I guess what you're going to have to do to give a hero chaos is have 2 versions of the hero, one with chaos and one without, and have a trigger that switches between them, somehow preserving the hero's skills, life, mana, experience, and level... I'm pretty sure that that will work. However, it's annoying and complicated - as it seems all my solutions are - and so I'm sure there must be a better way. Someone else might know? |
| 10-03-2003, 09:44 PM | #3 |
Why cant you use item-type is equal to blahblah? |
| 10-03-2003, 11:04 PM | #4 |
Well i would just replace the unit with a different unit that has chaos. Just save all the items, stats, level, experience etc. in variables. If you want help with that, tell me. |
| 10-03-2003, 11:22 PM | #5 |
Im not really certain how variables work, only how select to a certain unit, or the last created unit, or the triggering unit, and I think you get the idea..so it would also help out this level, and some other things I might do, and stop alot of other n00b questions i might ask, although this isn't exactly a n00b question, requires someone who knows how triggers work[perfectly, that is]. Thats all for this reply, and sorry if i confused at the beginning of the reply. |
| 10-03-2003, 11:38 PM | #6 |
Um... I couldn't quite understand your post, but what i got out of it was that you want help, so here it is Variables you need to make: Item type Array - items Integer - strength Integer - agility Integer - intelligence Integer - level Real - experience Whatever events like unit finishes casting an ability, etc. Action: for each integer A 1-6 { set (the item type array) = item in hero casting spell's item slot INTEGER A } Set (Level Integer) to hero's level Set(Experience Real) to hero's experience Set (strength integer) hero's strength excluding bonuses Set (agility Integer... etc When you swap the units, set all of the new unit's things to these variables, and update them again before you swap units back. You could do this without variables, but it is less confusing this way. |
| 10-03-2003, 11:43 PM | #7 | |
Quote:
you can do this....razor what you were doing wrong is you were looking at item comoparison in conditions for triggers...you have to select item-type comparison in conditions for triggers. |
