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:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: C(a)HeK, eksxo