Code
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 243 Wraith (terran\phoenix.grp)
.headerstart
IsId 82
Type 12
Init WraithInit
Death WraithDeath
GndAttkInit WraithGndAttkInit
AirAttkInit WraithAirAttkInit
Unused1 [NONE]
GndAttkRpt WraithGndAttkInit
AirAttkRpt WraithAirAttkInit
CastSpell [NONE]
GndAttkToIdle WraithGndAttkToIdle
AirAttkToIdle WraithGndAttkToIdle
Unused2 [NONE]
Walking WraithWalking
WalkingToIdle WraithWalkingToIdle
SpecialState1 [NONE]
.headerend
# ----------------------------------------------------------------------------- #
WraithInit:
imgul 244 0 42 # Wraith Shadow (terran\phoenix.grp)
WraithGndAttkToIdle:
playfram 0x00 # Frame set 0
goto WraithWalkingToIdle
WraithWalkingToIdle:
setvertpos 1
waitrand 8 10
setvertpos 2
waitrand 8 10
setvertpos 1
waitrand 8 10
setvertpos 0
waitrand 8 10
goto WraithGndAttkToIdle
WraithDeath:
playsnd 257 # Terran\PHOENIX\TPhDth00.WAV
imgol 332 0 0 # Explosion2 (Small) (thingy\tBangS.grp)
wait 1
end
WraithGndAttkInit:
playfram 0x11 # Frame set 1
wait 1
attackwith 1
playfram 0x00 # Frame set 0
wait 1
gotorepeatattk
goto WraithLocal00
WraithLocal00:
wait 125
goto WraithLocal00
WraithAirAttkInit:
randcondjmp 124 WraithLocal01
wait 1
attackwith 2
wait 1
gotorepeatattk
goto WraithLocal00
WraithLocal01:
playfram 0x11 # Frame set 1
wait 1
attackwith 1
playfram 0x00 # Frame set 0
wait 4
attackwith 2
wait 1
gotorepeatattk
goto WraithLocal00
WraithWalking:
imgol 245 0 0 # Wraith Engines (thingy\tphGlow.grp)
setvertpos 0
goto WraithLocal00
# This header is used by images.dat entries:
# 243 Wraith (terran\phoenix.grp)
.headerstart
IsId 82
Type 12
Init WraithInit
Death WraithDeath
GndAttkInit WraithGndAttkInit
AirAttkInit WraithAirAttkInit
Unused1 [NONE]
GndAttkRpt WraithGndAttkInit
AirAttkRpt WraithAirAttkInit
CastSpell [NONE]
GndAttkToIdle WraithGndAttkToIdle
AirAttkToIdle WraithGndAttkToIdle
Unused2 [NONE]
Walking WraithWalking
WalkingToIdle WraithWalkingToIdle
SpecialState1 [NONE]
.headerend
# ----------------------------------------------------------------------------- #
WraithInit:
imgul 244 0 42 # Wraith Shadow (terran\phoenix.grp)
WraithGndAttkToIdle:
playfram 0x00 # Frame set 0
goto WraithWalkingToIdle
WraithWalkingToIdle:
setvertpos 1
waitrand 8 10
setvertpos 2
waitrand 8 10
setvertpos 1
waitrand 8 10
setvertpos 0
waitrand 8 10
goto WraithGndAttkToIdle
WraithDeath:
playsnd 257 # Terran\PHOENIX\TPhDth00.WAV
imgol 332 0 0 # Explosion2 (Small) (thingy\tBangS.grp)
wait 1
end
WraithGndAttkInit:
playfram 0x11 # Frame set 1
wait 1
attackwith 1
playfram 0x00 # Frame set 0
wait 1
gotorepeatattk
goto WraithLocal00
WraithLocal00:
wait 125
goto WraithLocal00
WraithAirAttkInit:
randcondjmp 124 WraithLocal01
wait 1
attackwith 2
wait 1
gotorepeatattk
goto WraithLocal00
WraithLocal01:
playfram 0x11 # Frame set 1
wait 1
attackwith 1
playfram 0x00 # Frame set 0
wait 4
attackwith 2
wait 1
gotorepeatattk
goto WraithLocal00
WraithWalking:
imgol 245 0 0 # Wraith Engines (thingy\tphGlow.grp)
setvertpos 0
goto WraithLocal00
The file pathway is correct in the MPQ, Unit\Terran\Phoenix.grp. I even tested the new GRP out on the scout since the scripts are identical and it worked flawlessly. Just for some reason the Wraith does not want to display the new frames. Maybe I'm just a complete moron but I don't really see any reason why the script shouldn't be working. I thought it was just the GRP file at first but as it worked completely well with the Scout, it seems to be an Iscript issue or something.
None.