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.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: Ojan