Chaos_Knight
New Member
- Reaction score
- 39
In JASS, vJASS, is making of a "Fear" spell possible? "Fear" is like when the [ljass]GetTriggerUnit()[/ljass] moves around in an Area and cant attack. ( I wont remove the ability ).
The Point variable should be like ( GUI )
and
They are leaking, yes i know. Just for examples
and in JASS they become
[lJASS] set udg_TempPoint = GetUnitLoc(GetTriggerUnit())
set udg_TempPos = OffsetLocation(udg_TempPoint, GetRandomDirectionDeg(), GetRandomReal(0, ( 250.00 + ( 50.00 * I2R(GetUnitAbilityLevelSwapped('A010', GetTriggerUnit())) ) )))[/lJASS]
The Point variable should be like ( GUI )
Trigger:
- Set TempPoint = (Position of (Triggering unit))
and
Trigger:
- Set TempPos = (TempPoint offset by ((Random angle), (Random real number between 0.00 and (250.00 + (50.00 x (Real((Level of Fearing Attacks for (Triggering unit)))))))))
They are leaking, yes i know. Just for examples
and in JASS they become
[lJASS] set udg_TempPoint = GetUnitLoc(GetTriggerUnit())
set udg_TempPos = OffsetLocation(udg_TempPoint, GetRandomDirectionDeg(), GetRandomReal(0, ( 250.00 + ( 50.00 * I2R(GetUnitAbilityLevelSwapped('A010', GetTriggerUnit())) ) )))[/lJASS]