Staredit Network > Forums > Modding Assistance > Topic: Little iscript crash
Little iscript crash
Jun 19 2008, 3:14 am
By: Lord Jafud  

Jun 19 2008, 3:14 am Lord Jafud Post #1



I have a problem with an unit. When it and casts a spell (spell2) while moving, the game crashes.

The script:
Code
# 004 ScourgeExplosion (zerg\zavExplo.grp)
.headerstart
IsId               3
Type               12
Init               ScourgeExplosionInit
Death               ScourgeExplosionDeath
GndAttkInit         ScourgeExplosionGndAttkInit
AirAttkInit         ScourgeExplosionGndAttkInit
Unused1             [NONE]
GndAttkRpt         ScourgeExplosionGndAttkInit
AirAttkRpt         ScourgeExplosionGndAttkInit
CastSpell           ScourgeExplosionCastSpell
GndAttkToIdle       ScourgeExplosionGndAttkToIdle
AirAttkToIdle       ScourgeExplosionGndAttkToIdle
Unused2             ScourgeExplosionCastSpell2
Walking             ScourgeExplosionWalking
WalkingToIdle       ScourgeExplosionWalkingToIdle
SpecialState1       [NONE]
.headerend
# ----------------------------------------------------------------------------- #

ScourgeExplosionInit:
    imgul               922 0 42
    playfram           0x00     # frame set 0
    goto               ScourgeExplosionGndAttkToIdle

ScourgeExplosionGndAttkToIdle:
    wait               125
    goto               ScourgeExplosionGndAttkToIdle

ScourgeExplosionDeath:
    playsnd             177     # Terran\BATTLE\tbaDth00.wav
    imgol               333 0 0     # TerranBuildingExplosionmedium (thingy\tBangL.grp)
    wait               3
    end                

ScourgeExplosionGndAttkInit:
    playfram     0x00
    wait               1
    attackwith         1
    playsnd         1060
    wait               1
    attackwith         1
    wait               1
    attackwith         1
    wait               1
    attackwith         1
    wait               1
    attackwith         1
    playsnd         1060
    wait               1
    attackwith         1
    wait               1
    attackwith         1
    wait               1
    attackwith         1
    playfram     0x00
    wait         1
    gotorepeatattk    
    goto               ScourgeExplosionGndAttkToIdle

ScourgeExplosionCastSpell:
    playfram     0x00
    wait               1
    attackwith     2
    sigorder     2
    playsnd         1060
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    playsnd         1060
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    playfram     0x00
    wait         1
    playfram     0x00
    wait               1
    attackwith     2
    sigorder     2
    playsnd         1060
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    playsnd         1060
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    wait               1
    attackwith     2
    sigorder     2
    playfram     0x00
    wait         1
    gotorepeatattk    
    goto               ScourgeExplosionGndAttkToIdle

ScourgeExplosionCastSpell2:
    nobrkcodestart    
    wait               1
    playsnd             1059     # Protoss\Corsair\PCorWeb1.wav
    playsnd             548     # Protoss\ARBITER\PAbCag00.WAV
    useweapon     123
    wait         2
    castspell          
    nobrkcodeend      
    gotorepeatattk    
    sigorder           2
    goto               ScourgeExplosionGndAttkToIdle

ScourgeExplosionWalking:
    imgol               220 0 0     # BattlecruiserGlow (thingy\tbaGlow.grp)
    goto               ScourgeExplosionGndAttkToIdle

ScourgeExplosionWalkingToIdle:
    setvertpos         1
    waitrand           8 10
    setvertpos         2
    waitrand           8 10
    setvertpos         1
    waitrand           8 10
    setvertpos         0
    waitrand           8 10
    goto               ScourgeExplosionWalkingToIdle


Any suggestions??



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
Please log in to shout.


Members Online: C(a)HeK, Roy, RIVE