| 12-21-2006, 01:42 PM | #1 |
Hi guys! I have a little Problem. I think of a Hero that has a Skill based on Warstomp. The uniquie is, that this skill should slow the Target [STR]%. Therefor i need a trigger: E: unit cast spell B: Spell = mystomp A: Pick every unit in range matching and... dmg unit... slow Unit... I would create a skill for Dummy Units wirth 70LvL and set LvL = STR. Problem: i have a skill with 100 LvLs an it's Boring because of loading times and lagg while adding it to units. so i need a workaround. |
| 12-21-2006, 01:45 PM | #2 | |
Quote:
I would assume your cap is 70 because you note that's the level count for your skill. JASS:native SetUnitMoveSpeed takes unit whichUnit, real newSpeed returns nothing If I'm wrong, someone correct me. Naturally though, I think the % slow style like you have already is probably the best way for something that you want to adjust for by strength. If you want to play with the native I mentioned above, feel free to, but I think it's much safer to just go with the leveled spell thing you have now. |
| 12-21-2006, 01:55 PM | #3 |
I've never had an issue with SetUnitMoveSpeed, what bugs up about it? I won't doubt you but I'd say green-light to use it, and if its buggy find a workaround. |
| 12-21-2006, 02:08 PM | #4 |
thx. i think i heard about the bug. its more the problem to reset this action again, cause there could be other effects witch can manipulate the unit. so safeing the orign speed is'nt possible. i think i use the spell and initialise it properly. that would be the best. |
| 12-21-2006, 02:17 PM | #5 |
Well if you don't use it properly, of course it will "bug" if you can even call that a bug. But anyways, if you want to do -% movespeed simply do this: - Record the unit's current movespeed. (lets say for example, this is 300) - Edit the variable to be X% of this movespeed. (lets take 10%, which will calculate to 30 movespeed) - Subtract this 'constant' number from the unit's movespeed. (300 - 30 = 270; new movespeed) - Later, when the spell is over, add it again. (current movespeed + 30; if he's gotten +% movespeed buffs, it will still add the 30) If you use constants to edit movespeed, you'll be fine. Its when you subtract say.. 30% from a unit and then try to add back 30%, instead of the exact 'constant' number that was subtracted before. Anyways, that is just safe-editing not debugging, have fun! |
| 12-21-2006, 03:06 PM | #6 |
I think there is actually an innate issue with the native. Let me find the topic... Here it is. See the last post in the topic by BDSM. Apparently there is no bug, but it's a shitton harder to work with than just using abilities. Therefore I recommend abilities. |
| 12-21-2006, 03:22 PM | #7 |
Yea okay I see, its a bug that occurs when abilities and this trigger co-exist. Damn. Thats going to make movespeed all the more difficult in my AoS. |
