| 02-11-2007, 12:31 PM | #3 |
Your idea ain't working :/ |
| 02-11-2007, 12:49 PM | #4 | |
Quote:
The dummy unit has mana? And all whatever? By the way, the unit casts ever at the triggering unit, so.. |
| 02-11-2007, 09:34 PM | #6 |
Trigger: (Current order of TempUnit) Equal to (Order(!YourSpellsChannelOrderString!)) |
| 02-12-2007, 12:17 AM | #7 |
Open your hero ability in the object editor. Then go down to "Text - Order string use/turn on. Insert whatever it says there (case sensitive) in place of "!YourSpellsChannelOrderString!". |
| 02-12-2007, 08:36 AM | #8 |
TideHunter: Your trigger will prevent the spell from "going with caster" (like Epicenter in DotA), it will stop in a moment when the caster does something else, won't it? Are you sure Szymonik wants this? Another idea: What about using polar offset? The code will be simplier and it will produce circular area: Trigger: Set TempPoint = (Position of (TempUnit) offset by (Random real number between 0.00 and 600.00) towards (Random angle) degrees) |
| 02-12-2007, 08:54 AM | #9 |
The trigger TheTideHunter made will just hit random spots within a square area. And Random Angle is actually just a slower version of GetRandomReal(0, 360), or Random Real between 0 and 360. This is how I would have done it... Trigger: Custom Script: set udg_TempPoint = Location( GetLocationX(udg_CastPoint)+GetRandomReal(0, 500)*Cos(GetRandomReal(0, 360)*3.14159/180.0), GetLocationY(udg_CastPoint)+GetRandomReal(0, 500)*Sin(GetRandomReal(0, 360)*3.14159/180.0) )Trigger: Set TempPoint = (Position of (TempUnit) offset by (Random real number between 0.00 and 500.00) towards (Random angle) degrees) |
| 02-12-2007, 09:42 AM | #10 |
Thank you all, especially TideHunter. This was very helpful in creation of my map but I warn you I'll be back for more :). zeroXD I could't find your idea working. |
| 02-12-2007, 10:12 AM | #11 | |
Quote:
It won't be that noticable, only small corners. |
