|
|
#1 |
|
User
|
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?
|
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
User
Join Date: Dec 2005
Posts: 152
|
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)
|
|
|
|
|
|
#3 |
|
n00b map maker
|
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.
__________________ |
|
|
|
|
|
#4 |
|
User
|
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 Last edited by ShadowDestroyer : 05-07-2006 at 05:59 PM. |
|
|
|
|
|
#5 |
|
Dread Lord of the Cookies
Content Director
|
Post the trigger.
__________________ |
|
|
|
|
|
#6 |
|
User
|
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? Last edited by ShadowDestroyer : 05-07-2006 at 06:19 PM. |
|
|
|
|
|
#7 |
|
Dread Lord of the Cookies
Content Director
|
Yes. GUI/JASS hybrids should be avoided aside from the odd line.
__________________ |
|
|
|
|
|
#8 |
|
Nonchalant
Respected User
|
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)) |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |