I've seen how Bribe has combined JASS and GUI in his Damage Engine.
When I tried to do something similar, it didn't work.
Can anyone tell me how to make this work?
P.S. I know it will work if I put the JASS text in the map's custom script, but I wanna know how to do it like Bribe xP
When I tried to do something similar, it didn't work.
Can anyone tell me how to make this work?
-
Multishot Constants
-
Events
-
Time - Elapsed game time is 0.00 seconds
-
-
Conditions
-
Actions
-
Custom script: function Save_Properties takes nothing returns nothing
-
Set MultishotAngle = ((MultishotRange - (MultishotRange x (Power((Cos((MultishotAngle / 2.00))), 2.00)))) / (4.00 x (Cos((MultishotAngle / 2.00)))))
-
Set MultishotRange = (MultishotRange + 62.00)
-
Custom script: call SaveReal(udg_Table, udg_UnitType, StringHash("Range"), udg_MultishotRange)
-
Custom script: call SaveReal(udg_Table, udg_UnitType , StringHash("Parabola"), udg_MultishotAngle)
-
Custom script: call SaveBoolean(udg_Table, udg_UnitType , StringHash("Upgradeable"), udg_Temp_Boolean)
-
Custom script: call SaveInteger(udg_Table, udg_UnitType , StringHash("Targets"), udg_MultishotTargets)
-
Custom script: call SaveInteger(udg_Table, udg_UnitType , StringHash("AttackType"), udg_Temp_Integer)
-
Custom script: endfunction
-
-------- MultishotAngle = if the shape of the area was (but it isn't) a cone, what angle should it have in its base? (You can set it to values above 180, but then the definition of this angle would be different) --------
-
-------- MultishotRange = the range of your unit (or the range of the multishot, if they are different) --------
-
-------- MultishotTargets = the max amount of units that can be hit at once (leave to 0 if you want ALL units to be hit) --------
-
-------- Temp_Boolean = can the unit's range be upgraded with "Improved Bows" --------
-
-------- Temp_Integer = the attack type of the unit: 0 = spell; 1 = normal; 2 = pierce; 3 = siege; 4 = magic; 5 = chaos; 6 = hero --------
-
-------- Death Archer --------
-
Set UnitType = Death Archer
-
Set MultishotAngle = 50.00
-
Set MultishotRange = 900.00
-
Set MultishotTargets = 0
-
Set Temp_Integer = 5
-
Set Temp_Boolean = False
-
Custom script: call Save_Properties()
-
-------- Elite Night Elf Archer --------
-
Set UnitType = Elite Night Elf Archer
-
Set MultishotAngle = 40.00
-
Set MultishotRange = 600.00
-
Set MultishotTargets = 3
-
Set Temp_Integer = 2
-
Set Temp_Boolean = True
-
Custom script: call Save_Properties()
-
-
JASS:
function gg_trg_Multishot_Constants_Actions takes nothing returns nothing
function Save_Properties takes nothing returns nothing
P.S. I know it will work if I put the JASS text in the map's custom script, but I wanna know how to do it like Bribe xP