| 02-03-2007, 05:36 PM | #1 |
Im using vectors caster system, and i based my spell the his "Stone of lightning" one, and everytime ii try to cast it, it wont work, he'll cast the ability but nothing happens... so i decided to copy the JASS script striaght from the caster system, yet it still doesnt work, all i did to it was change the ability code and the model file, and i even kept the tips in it, here it is JASS:function InitTrig_Bomb_Capsule takes nothing returns nothing call OnAbilityEffect('A001',"Bomb_Capsule_Actions") endfunction //=========================================================================== function Bomb_Capsule_Actions takes nothing returns nothing local unit u = GetTriggerUnit() local location loc = GetUnitLoc(u) local location tar = GetSpellTargetLoc () local location pol local integer i local integer dopt call SetUnitAnimation( u, "attack" ) // I wanted a bigger energy ball for the first one, so I needed to increase the scale, and to use function ProjectileLaunchEx // notice I use 1.5 for scale argument. // call ProjectileLaunchExLoc( GetOwningPlayer(u) , "Abilities\\Weapons\\BoatMissile\\BoatMissile.mdl", 1.5, 255, 255, 255, 255, 522, 0.15, loc, 0, tar, 200.0 ) set dopt=DamageTypes(ATTACK_TYPE_SIEGE,DAMAGE_TYPE_DEMOLITION) // The damage will be chaos (ignore armor) and lightning (magical) set i = 1 loop exitwhen i > 10 set pol = PolarProjectionBJ(tar, i*25.0 , GetRandomInt(1, 360)) //distance: i*25, angle: random //: function DamagingProjectileLaunchAOELoc takes //: unit hurter, //: string modelpath, //: real speed, //: real arc, //: location loc1, //: real z1, //: location loc2, //: real z2, //: real aoeradius, //: real damage, //: boolean affectallied, //: integer DamageOptions //: returns unit call DamagingProjectileLaunchAOELoc( u, "Abilities\\Weapons\\BoatMissile\\BoatMissile.mdl", 100.0 , 0.35, tar, 275.0 , pol, 50, 100,50 ,true, dopt) call RemoveLocation(pol) set i = i + 1 endloop call RemoveLocation(tar) call RemoveLocation(loc) set tar=null set loc=null set u=null set pol=null endfunction Im not sure if its because im using it in a different map, or its because i did something wrong.. i also tried making other spells based on his spells in my map, but they didnt work either, and im using the Jass NewGen Pack, so idk whats going wrong... Please help =] |
| 02-03-2007, 08:49 PM | #2 |
Anitarf get here now! -Av3n |
| 02-04-2007, 12:23 AM | #3 |
Does the pack or whatever have a script you need to put at the map script part? |
| 02-04-2007, 03:47 AM | #4 |
Nope its vexorians caster system, i checked all the other stuff, didnt see anything else i needed to import... |
