HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

'CasterCastAbilityLevelPointLoc' is wierd.

04-10-2007, 11:23 AM#1
Toink
Ok, so I have this spell like Solar Beam from AotZ, but color yellow like the original Hero Revive graphics and is a holy beam. I use a timer to call a function which calls the CasterCastAbilityLevelPointLoc, it should use shockwave at the target loc of the spell, but whenever it is called, I believe the caster is created at the loc and uses the spell but I wanted him to shockwave so it damages units in a line. The prob is that it's always angled, if I target exactly 270 degrees south, the shockwave comes from the target loc and fires the shockwave and around 315 degrees or something. Can you make a new function which creates it in the unit's loc and orders it to target the target loc? Name it like 'CasterCastAbilityLevelFromPoint' or something like that..

Thanks for your time, and I'll reward you with candy if you add that function in the next version xD.
04-10-2007, 01:58 PM#2
Vexorian
There won't be more features added to the caster system, instead I'll upload the replacement.

Also

Code:
______________________________________________________________________________________________________________________________
 function CasterSetCastSource     takes real x, real y returns nothing
 function CasterSetCastSourceLoc  takes real x, real y returns nothing
 set udg_sourcehack = location (JASS)      |      set sourcehack = Point (GUI)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    * Will set the position where casters are moved before casting an ability, so you can make
      them cast an ability from the point determined by this function, by default the point where
      casters appear is the position of the target, use this to temporary change it.

    * This will only affect the Caster System functions that are next to this call, after a wait
      or in another instance of the trigger you'll have to set this again.

    * You can get the same effect if you set the value of the sourcehack variable, but don't ever
      forget to set it to null after calling the functions you want to affect.

    * See the Blessed Sword and Thors Hammer sample triggers to see an usage example on this hack.

______________________________________________________________________________________________________________________________
 function CasterSetRecycleDelay    takes real Delay returns nothing
 set udg_delayhack = Real (JASS)           |      Set delayhack = Real (GUI)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    * Will set the wait time before recicling a caster if you used false as instant argument, by
      default the Caster System will wait till the caster is not casting that ability before
      recycling it, use this to also add an extra delay before recycling it.

    * This will only affect the Caster System functions that are next to this call, after a wait
      or in another instance of the trigger you'll have to set this again.

    * The delayhack global variable determines the time the system will wait before recicling
      the casters used in a function when the ability is not instant. If you were experiencing
      that damage abilities were not giving bounty/experience if the kill was after a while from
      the time the casters cast the ability, set delayhack to the maximum time the damage can
      take. Always set delayhack to 0.00 after calling the functions.

    * See the Thor's hammer, the Blessed Sword and the Fire Wall sample triggers to see an
      usage example on this hack.

___________________________________________________________________________________________________________________________________________________________________________________________________________
function CasterCastAbilityEx           takes player owner, real x, real y, real z, integer abilid, integer level, string order, widget target, real delay returns unit
function CasterCastAbilityExLoc        takes player owner, location source, real z, integer abilid, integer level, string order, widget target, real delay returns unit

function CasterCastAbilityPointEx      takes player owner, real x1, real y1, real z1, integer abilid, integer level, string order, real x2, real y2, real delay returns unit
function CasterCastAbilityPointExLoc   takes player owner, location loc, real z1, integer abilid, integer level, string order, real x2, real y2, real delay returns unit
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    * These versions of CasterCastAbility and CasterCastAbilityPoint, allow you to choose everything,
    including the level of the ability, the source point and ELEVATION and the recycle delay.

    * They IGNORE CasterSetCastSource and CasterSetRecycleDelay , also udg_delayhack and udg_sourcehack
04-11-2007, 03:12 AM#3
Toink
Ohh, I haven't seen that before xD.

So what I'm supposed to do is call CasterSetCastSource then after that call the CasterCastAbilityBlahBlahBlah ?
04-11-2007, 04:34 AM#4
Vexorian
before.

Although Ex is better
04-11-2007, 09:33 AM#5
Toink
Let me make this clear for myself, I should :

1.] Call CasterCastAbilityLevelPointLoc
2.] Call CasterSetCastSource

Or vice versa?
04-11-2007, 12:55 PM#6
Vexorian
vice versa.

But really, Ex is better it does it all with just one function.
04-11-2007, 03:01 PM#7
Toink
Wtfart is Ex?
04-11-2007, 03:21 PM#8
Vexorian
Code:
___________________________________________________________________________________________________________________________________________________________________________________________________________
function CasterCastAbilityEx           takes player owner, real x, real y, real z, integer abilid, integer level, string order, widget target, real delay returns unit
function CasterCastAbilityExLoc        takes player owner, location source, real z, integer abilid, integer level, string order, widget target, real delay returns unit

function CasterCastAbilityPointEx      takes player owner, real x1, real y1, real z1, integer abilid, integer level, string order, real x2, real y2, real delay returns unit
function CasterCastAbilityPointExLoc   takes player owner, location loc, real z1, integer abilid, integer level, string order, real x2, real y2, real delay returns unit
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
    * These versions of CasterCastAbility and CasterCastAbilityPoint, allow you to choose everything,
    including the level of the ability, the source point and ELEVATION and the recycle delay.

    * They IGNORE CasterSetCastSource and CasterSetRecycleDelay , also udg_delayhack and udg_sourcehack
04-11-2007, 03:37 PM#9
Toink
omg, I must be going blind. Thanks again :D