| 07-05-2004, 06:01 AM | #1 |
I have an ability that at level 1 makes unit do 0 damage to other units 100% of the time (based on Critical Strike). I need to change those 0s to "miss" text, I also can't have it based on anything else, as I need it to serve as an actual damage multiplier as ability level goes up. Any suggestions on how I can change those zeroes to misses? Also, since I'm already asking this, I have another question. I need a building that gets built from the same menu as other buildings to have the "Timed Life" bar that goes down like the summons. I can't use an ability like for other summons because I need the building to be built through normal build menu with other buildings. Perhaps there is some ability I could add to it later through a trigger Add Ability function to make it have timed life. Thanks. |
| 07-05-2004, 06:40 AM | #2 |
I don't know about the miss thing, but you could make a trigger, ie say the building is called Farm. Events: Structure is built (dunno what trigger that would be) Conditions: (Triggering unit) is Farm, equal to true. Actions: Wait 15 seconds Remove or destroy (triggering unit) |
| 07-05-2004, 01:05 PM | #3 |
Edit: nvm im wrong here |
| 07-05-2004, 01:06 PM | #4 |
For a timed life, use "unit - add expiration timer". As far as changing text on critical strike, there is no easy way for it. The text is hard-coded into the spell to display the actual damage dealt. Even if you use floating text triggers or curse-based spells to display the miss, the 0! will still be displayed. |
| 07-05-2004, 01:07 PM | #5 | |
Quote:
lol we posted nearly at same time -_-' it is possible and its work see my post up there |
| 07-05-2004, 01:21 PM | #6 | |
Quote:
|
| 07-05-2004, 01:30 PM | #7 |
Think there's a function in UMSWE that allows you to simulate Damage/gold floating text, but i'm not sure. |
| 07-05-2004, 01:40 PM | #8 |
oh sorry nvm i just didnt got wat he meant i edited my post and removed the map, im just tired... |
| 07-05-2004, 02:51 PM | #9 |
The only thing I can think of is sort of out in the open. Generate a spell off the Curse spell and set the Data for Chance to Miss to 1.00 with a duration of your choosing. Either apply the Curse-esque spell through Triggers or an invisible unit. I hope that's some help. With the second question, I have yet another very indirect idea. Create an invisible unit that has the ability to create the building you want to create based off Summon Water Elemental (Pocket Factory can get confusing). Have the building be built in the building menu, but make the command build a dumby building, very small. Then have a Trigger that when that building is built, it's removed and the invisible unit summons the building in that exact location. Best ideas I have, I apologize. Good luck. |
| 07-05-2004, 07:36 PM | #10 |
The expiration timer works fine, but it doesn't add the timer bar like the summons have. So you can't see how much time you have left until the unit dissapears. As for the idea of having a unit with an ability to summon, the summon ability isn't an ability targeting a point, so I can't make the game put the summon in the same place where the original unit is. And concerning the 0->miss thing, I guess I'll just leave it that way then. |
| 07-05-2004, 10:15 PM | #11 |
Then don't use Summon Water Elemental, I was aiming for the simplistic path. Instead use Pocket Factory. That has a point of summon, and I would assume (without looking) that you can achieve the effect you're after. Concerning the zero to miss issue, I've tested the idea I gave you and it works. By giving the unit a zero damage attack and using an invisible unit (in conjunction with triggers) unit always missed why the invisible spell was in effect. |
| 07-06-2004, 06:38 AM | #12 |
If by Pocket Factory you mean "Build Tiny Great Hall" ability then it's no use because duration on that ability controls how long it takes to build and not how long it lasts. However, luckily to test out this ability I just randomly happened to have picked Phoenix as the unit, and after it died and went into an egg form, with a timer bar, and this I think will be the solution to my problem, I'll just make the tower die and go into "egg" mode immediatelly, and after it's out, it gets destroyed. If this is just a coincidence that I happened to pick Phoenix, then it's really odd. Also, for the miss thing, the reason "curse" solution won't work is because my critical aura only crits against air units and another one only against ground units. This is to simulate the tower's inability to target air, but I couldn't just uncheck air from targets because I need it to target air later, when player upgrades the ability allowing it to cause certain % of dmg to air. I couldn't use my second attack, because that's reserved for chaos damage (later in the game an upgrade switches damage to chaos). And, if I put the curse miss aura on the unit, it wouldnt be able to attack ground units too, not just air units. EDIT: The Phoenix solution works great, but I also found out that Expiration Timer works too, and the reason it didn't show a timer for me before was because I was using it on a building, and I should use it on a unit. Thanks guys. |
| 07-06-2004, 04:30 PM | #13 |
Um... Negatory. Pocket Factory is the Neutral Hero, Goblin Tinker's, ability. When used, the Goblin Tinker throws a box on the ground that creates a factory structure that produces robo-goblins automatically. The factory has a duration time. That's what I was describing, but I'm glad you still found a solution. |
