HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hmm, problemwith passive skill

10-22-2006, 04:27 PM#1
zeroXD
--- REMOVED BECAUSE THE PROBLEM IS SOLVED ---
10-22-2006, 04:44 PM#2
zen87
found your problem :

Collapse JASS:
    set fx=AddSpecialEffect( "Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl", GetUnitX( target ), GetUnitY( target ) )
will cause crash, replace all your sfx to double "\\"

example :
Collapse 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
TaintedReality
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:
Collapse JASS:
set fx=AddSpecialEffect( "Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl", GetUnitX( target ), GetUnitY( target ) )

would become this:

Collapse 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
zeroXD
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:

Collapse JASS:
    set dummy=CreateUnit( GetOwningPlayer( caster ), 'h001', GetUnitX( caster ), GetUnitY( caster ) )
//Says invalid number of arguments

Collapse JASS:
elseif chance==1
//Says expected expression

Wich is the only things wrong now
More help, plz
10-22-2006, 05:07 PM#5
TaintedReality
Collapse 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.

Collapse 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
Fireeye
you forgot the "then" that's all.
if <...> then
elseif <...> then
...
endif
10-22-2006, 05:53 PM#7
Thunder_Eye
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
Alevice
Quote:
Fireeye
User



Quote:
Thunder_Eye
User





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
zeroXD
Hmm, thanks, crap forgot the facing! THE FACING OF ALL THINGS!!!!