| 10-22-2006, 04:27 PM | #1 |
--- REMOVED BECAUSE THE PROBLEM IS SOLVED --- |
| 10-22-2006, 04:44 PM | #2 |
found your problem : JASS:set fx=AddSpecialEffect( "Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl", GetUnitX( target ), GetUnitY( target ) ) example : JASS:set fx=AddSpecialEffect( "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl", GetUnitX( target ), GetUnitY( target ) ) now, start cursing blizzard for these troubles they gave us |
| 10-22-2006, 04:44 PM | #3 |
When you have strings such as you are using in your special effects, you need to replace the \ character with \\, because \ is the escape sequence. So this: JASS:set fx=AddSpecialEffect( "Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl", GetUnitX( target ), GetUnitY( target ) ) would become this: JASS:set fx=AddSpecialEffect( "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl", GetUnitX( target ), GetUnitY( target ) ) Edit: Too slow =P. And...it's not really Blizzard's fault, just a standard in programming. |
| 10-22-2006, 04:50 PM | #4 |
Yeh, curse blizzard everythings their fault... Pity i cant copy from the model path in object editor and leaving it that way. Thanks EDIT: Still i get some silly errors, code below: JASS:set dummy=CreateUnit( GetOwningPlayer( caster ), 'h001', GetUnitX( caster ), GetUnitY( caster ) ) //Says invalid number of arguments JASS:elseif chance==1 //Says expected expression Wich is the only things wrong now More help, plz |
| 10-22-2006, 05:07 PM | #5 |
JASS:set dummy=CreateUnit( GetOwningPlayer( caster ), 'h001', GetUnitX( caster ), GetUnitY( caster ) ) Well as it said, there's an invalid number of arguments =D. It takes 1 more parameter at the end, real facing. 0.0 would be default or whatever you want. JASS:elseif chance==1 //Says expected expression You forgot to put a Then after the "elseif chance==1". |
| 10-22-2006, 05:09 PM | #6 |
you forgot the "then" that's all. if <...> then elseif <...> then ... endif |
| 10-22-2006, 05:53 PM | #7 |
Don't speek ill of blizzard, they are the ones that gave this miraculous modding-blessing to us :) |
| 10-22-2006, 11:15 PM | #8 | ||
Quote:
Quote:
Man, I could have sworn you were the same person. It makes it worse when I think one of you was double posting or something. |
| 10-23-2006, 06:33 AM | #9 |
Hmm, thanks, crap forgot the facing! THE FACING OF ALL THINGS!!!! |
