PDA

View Full Version : Question involving iscript


Holocaust
12-25-2005, 12:16 PM
If I was to make a Dark Templar attack normally, then randomly spin and slash,
Would my iscript be like this?
# created on: Sun Dec 25 11:59:55 2005
# ----------------------------------------------------------------------------- #
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 933 DarkTemplarBWUnit (protoss\dtemplar.grp)
.headerstart
IsId 372
Type 12
Init DarkTemplarBWUnitInit
Death DarkTemplarBWUnitDeath
GndAttkInit DarkTemplarBWUnitGndAttkInit
AirAttkInit [NONE]
SpAbility1 [NONE]
GndAttkRpt DarkTemplarBWUnitGndAttkInit
AirAttkRpt [NONE]
SpAbility2 DarkTemplarBWUnitSpAbility2
GndAttkToIdle DarkTemplarBWUnitGndAttkToIdle
AirAttkToIdle [NONE]
SpAbility3 [NONE]
Walking DarkTemplarBWUnitWalking
Other DarkTemplarBWUnitInit
BurrowInit [NONE]
.headerend
# ----------------------------------------------------------------------------- #
DarkTemplarBWUnitInit:
playfram 0xdd # frame set 13
goto DarkTemplarBWUnitGndAttkToIdle
DarkTemplarBWUnitGndAttkToIdle:
wait 125
goto DarkTemplarBWUnitGndAttkToIdle
DarkTemplarBWUnitDeath:
playsnd 741 # Protoss\DARKTEMPLAR\PDTDth00.WAV
imgol08 153 0 0 # Unknown153 (protoss\zealot.grp)
wait 1
end
DarkTemplarBWUnitGndAttkInit:
playfram 0x00 # frame set 0
wait 1
nobrkcodestart
playfram 0x11 # frame set 1
wait 1
playfram 0x22 # frame set 2
wait 1
playfram 0x33 # frame set 3
wait 1
playfram 0x44 # frame set 4
wait 1
attack1c 1 111 # Bullet\UZeFir00.wav
playfram 0x55 # frame set 5
wait 1
playfram 0x66 # frame set 6
wait 1
playfram 0x77 # frame set 7
wait 1
playfram 0x88 # frame set 8
wait 1
playfram 0x99 # frame set 9
wait 1
__1e_condjmp 25 local00
turncwise 4
playfram 0x11 # frame set 1
wait 1
playfram 0x22 # frame set 2
wait 1
playfram 0x33 # frame set 3
wait 1
playfram 0x44 # frame set 4
wait 1
attack1c 1 111 # Bullet\UZeFir00.wav
playfram 0x55 # frame set 5
wait 1
playfram 0x66 # frame set 6
wait 1
playfram 0x77 # frame set 7
wait 1
playfram 0x88 # frame set 8
wait 1
playfram 0x99 # frame set 9
wait 1
nobrkcodeend
gotorepeatattk
ignorerest
goto DarkTemplarBWUnitInit
DarkTemplarBWUnitSpAbility2:
castspell
sigorder 2
gotorepeatattk
goto DarkTemplarBWUnitInit
DarkTemplarBWUnitWalking:
move 5
wait 1
playfram 0xee # frame set 14
move 5
wait 1
playfram 0xff # frame set 15
move 5
wait 1
playfram 0x110 # frame set 16
move 5
wait 1
playfram 0x121 # frame set 17
move 5
wait 1
playfram 0xaa # frame set 10
move 5
wait 1
playfram 0xbb # frame set 11
move 5
wait 1
playfram 0xcc # frame set 12
move 5
wait 1
playfram 0xdd # frame set 13
goto DarkTemplarBWUnitWalking
One more question, What are the "local ##" for?