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.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: Moose, DarkenedFantasies, Ojan