| 05-07-2006, 02:55 PM | #1 |
I was using the knockback map by vile. When I imported all the needed triggers for just the knockback unit, i had 272 compile errors. I imported all the variables, what am i doing wrong? |
| 05-07-2006, 03:06 PM | #2 |
You need too import some stuff from the Custom Script(CS Cache, an part of Caster System), so try downloading Vexorians Caster System to get the needed system.(Atleast i think it was CS) |
| 05-07-2006, 03:27 PM | #3 |
Click on the VilesKnockbackFunctions.w3x file in the triggers section, and paste what is in there to your map. Also make a global variable named cscache and define it as Game Cache. |
| 05-07-2006, 05:44 PM | #4 |
Ok, now I am only experiencing 15 compile errors. I think they are from variables that I do not have, but I copied all of the variables that you have listed in the variables dialog... Edit, no, thats not it... I just added all those variables Just a note, they are all occuring on the unit knockback trigger, oddly enough, every line doesn't work... 15 lines, 15 mistakes |
| 05-07-2006, 06:06 PM | #5 |
Post the trigger. |
| 05-07-2006, 06:18 PM | #6 |
JASS:local location casterloc = GetUnitLoc(GetSpellAbilityUnit()) local location targetloc = GetUnitLoc(GetSpellTargetUnit()) local real angle = AngleBetweenPoints(casterloc, targetloc) local interger lvl = GetUnitAbilityLevel(GetSpellAbilityUnit(),'A05P:AHtb') local real dist local real break call removelocation(casterloc) call removelocation(targetloc) set dist = 35 set break = 1.25-(.15*l2R(lvl)) The problem is, all the triggers work fine until I use the custom script in the GUI. Should I just write it in pure jass, without the Custom Script command? |
| 05-07-2006, 06:26 PM | #7 |
Yes. GUI/JASS hybrids should be avoided aside from the odd line. |
| 05-07-2006, 06:40 PM | #8 |
Capatilisation and spelling is important in jass. Fixed up your minor ones: JASS:local location casterloc = GetUnitLoc(GetSpellAbilityUnit()) local location targetloc = GetUnitLoc(GetSpellTargetUnit()) local real angle = AngleBetweenPoints(casterloc, targetloc) local integer lvl = GetUnitAbilityLevel(GetSpellAbilityUnit(),'AHtb') //rawcodes are just the last four digits local real dist local real break call RemoveLocation(casterloc) call RemoveLocation(targetloc) set dist = 35 set break = 1.25-(.15*I2R(lvl)) |
