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.
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
Please log in to shout.


Members Online: jun3hong, Oh_Man