Expelliarmus
Where to change the sig?
- Reaction score
- 48
Yes, this topic again.
I got ORBEngine system from the SandBox v3.1 of Pyramidal Defence(also by Cohadar) if people wanted to know.
My problem:
I don't the get the system at all, I need explanation.
In the above example (which was from Post #129)
- Why is it in the library?
- What possible scope is used in conjunction with this library?
- How is trig a function?
- Where is ORBEngine_ReduceDamage()? It is not in the Sandbox version of ORBEngine.
Thankyou
I got ORBEngine system from the SandBox v3.1 of Pyramidal Defence(also by Cohadar) if people wanted to know.
My problem:
I don't the get the system at all, I need explanation.
JASS:
//==============================================================================
library ManaShield initializer Init uses ORBEngine
//==============================================================================
private function Conditions takes nothing returns boolean
local real damage = GetEventDamage()
local real mana = GetUnitState(GetTriggerUnit(), UNIT_STATE_MANA)
if damage >= mana then
call SetUnitState(GetTriggerUnit(), UNIT_STATE_MANA, 0)
call ORBEngine_ReduceDamage(mana)
else
call SetUnitState(GetTriggerUnit(), UNIT_STATE_MANA, mana-damage)
call ORBEngine_ReduceDamage(damage)
endif
return false
endfunction
//==============================================================================
private function Init takes nothing returns nothing
local trigger trig = CreateTrigger()
call TriggerAddCondition(trig, Condition(function Conditions))
call ORBEngine_RegisterOrbShield(trig, AID_SKILL_MANASHIELD, SCOPE_PREFIX)
endfunction
endlibrary
In the above example (which was from Post #129)
- Why is it in the library?
- What possible scope is used in conjunction with this library?
- How is trig a function?
- Where is ORBEngine_ReduceDamage()? It is not in the Sandbox version of ORBEngine.
Thankyou