| 01-06-2007, 07:35 PM | #1 |
I have an antiorb spell that is supposed to shoot a chain lightning spell 99% of the time when the caster is attacked. Ive tried almost everything to get this working but nothing works. I double and triple checked the rawcodes and there correct. Code:
// Dark Pillar ('A015')
//
set s=SetPassiveTemplate('A015',"AntiOrbTemplate")
call SetAbilityDataInt( s,"t" ,0,0)
call SetAbilityDataInt( s,"enemyhitonly" ,1,0)
call SetAbilityDataReal(s,"chance" ,0,99)
call SetAbilityDataReal(s,"basedmg" ,1,40)
call SetAbilityDataReal(s,"basedmg" ,2,65)
call SetAbilityDataReal(s,"basedmg" ,3,90)
call SetAbilityDataReal(s,"basedmg" ,4,115)
call SetAbilityDataReal(s,"basedmg" ,5,140)
call SetAbilityDataReal(s,"cooldown" ,0,0)
call SetAbilityDataInt( s,"spellid" ,0,'A018')
call SetAbilityDataInt( s,"orderid" ,0,OrderId("chainlightning"))
call SetAbilityDataReal(s,"recdelay" ,0,1) |
| 01-06-2007, 10:00 PM | #2 |
I can't find anything odd there, so you may have to send me your map, unless - Your chain lightning doesn't have 0 mana cost / cooldown (although the caster system is supposed to survive, somehow I found it not working sometimes if the spell doesn't cost 0 mana /cooldown) or - The caster system's dummy unit is not implemented correcty. If those are not the causes, I 'll have to check your map |
| 01-07-2007, 01:13 AM | #3 |
Cooldown is 0 and mana cost is 0, and the other spells i've done so far work fine so i think the dummy caster system works, so i'll send you the map; can you give me your email? Also, on shield templates is there any way to change the attack speed of the shield? |
| 01-07-2007, 02:07 AM | #4 |
shields have attack? Anyways [email protected] |
| 01-07-2007, 02:45 AM | #5 |
Yes >.> the shield template lets you add an attack to the shield thingies. |
| 01-08-2007, 02:43 AM | #6 |
I found the problem The rawcode i was using was the same as the rawcode for one of your premade abilities.. Another question: When my shield thingies attack they seem to suicide.. Is there any way to stop them from dying when they attack? |
| 01-08-2007, 03:07 AM | #7 |
I would say there is no easy way to change the behaviour of that template, so you'll have to modiffy the code itself and not just the data |
