| 04-17-2006, 07:28 PM | #1 |
Hi, I´m using the CS to do deal damage and stun all units in Aoe. Works fine except it doesn`t give bounty or experience to the casting player. I use: JASS:call CasterCastAbilityLevelAOELoc( GetOwningPlayer(udg_LOP), 'A01V', GetUnitAbilityLevel(udg_LOP, 'A00W'),"thunderbolt", GetUnitLoc(udg_LOP), 250, false, true) (udg_LOP is the unit variable) Doesn`t give bounty or experience CasterCastAbilityPointLoc for example gives bounty and experience. JASS:call CasterCastAbilityPointLoc( GetOwningPlayer(udg_UnitVar), 'A00P' , "thunderclap", udg_PointVar, true) So why doesn´t CasterCastAbilityLevelAOELoc ? Thanks for your help. |
| 04-19-2006, 03:47 AM | #2 |
It should give bounty, like 99% of my spells are based on the fact it does give bounty, my bet is that your UnitVar is pointing to null or is not owned by the right player. |
| 04-19-2006, 08:46 PM | #3 |
No the Unitvar must be correct: 1) JASS:GetUnitAbilityLevel(udg_LOP, 'A00W') 2) JASS:GetUnitLoc(udg_LOP) 3) It still doesn´t give bounty when i use JASS:Player(2) or JASS:GetOwningPlayer(GetTriggerUnit()) JASS:GetOwningPlayer(udg_LOP) And yes Bounty is turned on. This is so strange ![]() |
| 04-20-2006, 02:21 AM | #4 |
Well some spells don't give bounty , mainly when they are not supposed to cause damage but you used negative numbers to do so. Also if the damage is timed you need to set a good recycle delay. I am afraid (Really, I don't want to go back to windows XP just to test the map) that I should take a look at your map and see what's the problem. |
| 04-20-2006, 02:24 AM | #5 |
actually, now that I read your question again (sorry for taking more attention than I should) Why would you use CasterCastAbilityAOE for thunderclap? AOE functions are to cast spells with single targets on multiple units, thunderclap is a spell that already affects multiple units |
| 04-20-2006, 05:37 PM | #6 | |||
Quote:
Quote:
Quote:
It´s thunderbolt, not thunderclap. |
| 04-20-2006, 10:10 PM | #7 |
oh, then it has sense. I am sure it will take sometime to do the damage , it is thunder bolt,. You need to set a recycle delay, probably 0.5 seconds would do the job. Take a look to the caster system's readme and find the function that sets the recycle delay for the next function, and call it before the AOE function |
| 04-21-2006, 02:06 AM | #8 |
tried: JASS:call CasterSetRecycleDelay(1) call CasterCastAbilityLevelAOELoc( GetOwningPlayer(udg_LOP), 'A01V', GetUnitAbilityLevel(udg_LOP, 'A00W'),"thunderbolt", GetUnitLoc(udg_LOP), 250, false, true) and JASS:call CasterSetRecycleDelay(0.5) call CasterCastAbilityLevelAOELoc( GetOwningPlayer(udg_LOP), 'A01V', GetUnitAbilityLevel(udg_LOP, 'A00W'),"thunderbolt", GetUnitLoc(udg_LOP), 250, false, true) Still no bounty or experience ![]() |
| 04-21-2006, 03:43 AM | #9 |
err JASS:function CasterCastAbilityLevelAOELoc takes player owner, integer abilid, integer level, string order, location center, real radius, boolean goodeffect, boolean instant returns nothing boolean instant, use false there so the recycle delay is actually considered. JASS:call CasterSetRecycleDelay(0.5) call CasterCastAbilityLevelAOELoc( GetOwningPlayer(udg_LOP), 'A01V', GetUnitAbilityLevel(udg_LOP, 'A00W'),"thunderbolt", GetUnitLoc(udg_LOP), 250, false, false) ok I forgot stuff, anyways try reading the readme of the caster system before using its functions |
| 04-21-2006, 04:07 AM | #10 |
Sry forgot to change the instant boolean. Works now, thanks for your help |
