• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 14:19
CET 20:19
KST 04:19
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets3$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)15Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1825
StarCraft 2
General
SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list? Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament SC2 AI Tournament 2026 $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) $25,000 Streamerzone StarCraft Pro Series announced WardiTV Winter Cup
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ [ASL21] Potential Map Candidates BW General Discussion A cwal.gg Extension - Easily keep track of anyone Potential ASL qualifier breakthroughs?
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Beyond All Reason Nintendo Switch Thread Awesome Games Done Quick 2026! Mechabellum Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1696 users

[Guide] IskatuMesk's Intermediate Modding Primer

Forum Index > BW General
Post a Reply
Normal
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
Last Edited: 2009-06-09 21:41:18
June 09 2009 21:38 GMT
#1
[image loading]


Hi, I'm IskatuMesk. In my previous guide for the sc2 beta key contest I showed you how to utilize the basic utilities involved in Starcraft modding. Now I'm going to show you a few intermediate techniques using those existing programs. In this guide I will introduce you to the concept of randomized sequence attacks, like those I use in Armageddon Onslaught.

The first guide - http://www.teamliquid.net/forum/viewmessage.php?topic_id=94535

Sequenced Attacks


I coin the term "Sequenced" attacks on the concept of a unit doing multiple actions during a single action. In the image above, the Undead Blood Tornado is initiating a sequenced attack that causes it to fire a volley of projectiles at varying angles. Things like this are extremely difficult if not impossible to do in most game engines, but Starcraft's iscript.bin makes this incredibly simple.

[image loading]


To mod starcraft competently, you must understand that it's not so much you modding the game as it is you working your way around the game's limitations and being clever.

In Armageddon Onslaught and in ITAS, I give many units massive sequenced attacks. The Adjucator in AO has a script setup that causes it to "call" and "return" several attack scripts over and over again. This causes it to attack over 50 times in a single motion. In Vanilla starcraft, the Zealot uses an attack sequence that causes it to hit twice during its attack animation. This is something incredibly difficult to do inside Warcraft 3 and even then not inside a mod environment.

Establishing the Starcraft concept & the iscript

[image loading]
[image loading]

[image loading]


Starcraft's strong point, and its weak point, is that it's a sprite-based game. The iscript controls virtually everything animation and event-related when concerning sprites.

The sprites themselves typically (the missile turret and such are an exception) only have the east-facing directions. My gifs above are of models I created in Maya and 3ds max. The purple is Player Color. Before they're introduced into Starcraft, they must be given the Starcraft unit palette, a very limited 256-color palette. I detail about this process in one of my video tutorials I posted in the previous thread.

The 17 frames for each direction of the animation only need to be referred to as "framesets" most of the time. Inside our Mutalisk script from the previous guide, we see this code.

MutaliskInit:
imgul 39 0 42 # MutaliskShad (zerg\mutalid.grp)
playfram 0x00 # frame set 0
waitrand 1 4
MutaliskGndAttkToIdle:


imgul stands for Image Underlay. SC is not a 3d game - everything is completely 2d, but the isometric angle used in Blizzard's 3d renders give the illusion that it's 3d. This command is creating an "overlay", aka another sprite, that will always display beneath the current unit's animation level. If we jumped into Datedit real quick and looked at this tab...

[image loading]


We can see that the game has different levels, or layers. These can also change how collision works, as well. See the Datedit tooltip.

Since the Mutalisk's shadow is being displayed at a lower level than it is, it won't ever clip past the Mutalisk. Thus, the illusion of height.

The numbers, 39 0 42, are "Images.dat id", "horizontal offset", and "vertical offset". Also, lol 42.

If you peaked into images.dat real quick, you'd see that the 39 id is just a Mutalisk given a special transparent palette setting - that of the shadow. Unlike most other palette settings, the Shadow palette doesn't need you to handle the graphic in a special way - you can give it to anything. But it has no color depth to it, it will always be a single shade.

The playfram command is what is calling the framesets I was talking about. 0x00 is hex, basically meaning frameset 1. 0x11 will call frameset 2, and 0x99 will call frameset 9, while 0xbb will call frameset 11.

Then there is waitrand, telling the game to wait 1-4 ticks (1/10 a second in Normal gametime). This is so that when the mutalisk is trained and it had its idle animation, a big stack of them would have varying animations and not be completely unified which may look odd.

You can imagine the fun things you can do with just waitrand and frame calls. In Armageddon Onslaught, I used waitrand to randomize Zeus' Eye of the Storm. Instead of all of his psionic storms appearing unified, they animated totally randomly of each other, giving a much more impressive storm-like effect. This also had the effect of causing them to "accelerate" their animations randomly. It helps add to the impressiveness of an otherwise simple ability.

Attack sequencing

[image loading]


In this segment we're going to build an example Mutalisk attack sequence.

If we look at our Mutalisk attack script...

MutaliskGndAttkInit:
playsnd 113 # Bullet\zmuFir00.wav
wait 1
attackwith 1
gotorepeatattk
goto MutaliskGndAttkToIdle


Not very exciting, yes?

Let's add some more attacks to it.

MutaliskGndAttkInit:
playsnd 113 # Bullet\zmuFir00.wav
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
gotorepeatattk
goto MutaliskGndAttkToIdle


Contratulations, you've just done what you can't do inside wc3 without serious, serious hackjobbing. You've caused the Mutalisk to fire multiple times in a single animation. Feel free to compile this and see what happens Ingame - your Mutalisk ship of ultimate doom should instantly gib most units it attacks.

But perhaps we want something different. Perhaps we want the Mutalisk battalcroozah to fire torpedoes instead of yamato blasts, and we want them to fire from the ships sides in a volley like the Blood Tornado.

I'm going to introduce you to a fun little concept.

Between waits you can do all sorts of fun stuff. Attack 4-5 times instantly, or even physically turn the unit around, and attack, and then turn back. Since it happens between waits, the unit physically turning doesn't actually appear. We can turn the unit to spawn the projectile at an angle.

MutaliskGndAttkInit:
playsnd 113 # Bullet\zmuFir00.wav
wait 1
turncwise 8
attackwith 1
turnccwise 16
attackwith 1
turncwise 8
gotorepeatattk
goto MutaliskGndAttkToIdle


Cool, huh? This is how my Adjucator works, just a bit more fancy than this.

Now, pop into datedit again. Use open -> Directory, and load your arr directory inside of your mod folder from the last guide.

[image loading]


Sweet! Datedit will load every arr located in a directory for our convenience. Quite handy, especially if you're changing a lot of values randomly and closing datedit to change your mpq.

Speaking of which, what's the benefit of having Datedit load from your mpq, and how can we do that?

Go to file -> Options.

[image loading]


If you click on the button next to the sector I have highlighted in orgasm-inducing hot pink, you'll be able to select your Mpq. Now, if you hope over to your Mutalisk and check his Graphic subtab in the unit editor, you should see the black Keeper graphic. Cool! This is handy if you are dealing with a LOT of custom graphics or you're jerry rigging unused stuff into new graphics, like I did with AO.

Let's jump into Weapons.dat and find the Mutalisk's Glave Wurm. Remember, we can jump there directly from the Mutalisk weapon entries in units.dat.

Let's change the missile graphic to EMP Missile. Let's also change the X offset to something like 30. Go ahead and change the range to 16, as well - may as well make these feel like big honken' space torpedoes, after all!

For yucks, set the splash to 10,20,30, and the "Effect" to "Splash Enemy". Now we should have something like this.

[image loading]


The next time Bisu tries to pull some Corsair dancing on us, he'll be quite shocked at what we have waiting for him.

Go ahead and save that, close Datedit, toss it into your mpq along with your new iscript changes, and test it. Your Mutalisk should fire two torpedoes from the front sides at a target and do considerable damage to it and anything immediately close-by.

Maybe we want something bigger. Beefier. More daring. Perhaps manly.

Now that we have a grasp of how to make the Mutalisk fire projectiles from the sides, we can have some fun with that.

MutaliskGndAttkInit:
playsnd 113 # Bullet\zmuFir00.wav
wait 1
turncwise 8
attackwith 1
turnccwise 16
attackwith 1
turncwise 8
wait 1
turncwise 12
attackwith 1
turnccwise 24
attackwith 1
turncwise 12
wait 1
turncwise 16
attackwith 1
turnccwise 32
attackwith 1
turncwise 16
wait 1
gotorepeatattk
goto MutaliskGndAttkToIdle


Excellent. Now our Mutalisk will fire an actual volley.

But wait. I said randomized attack sequences, right? This isn't very random.

A random sequence is when a unit has a random change to do something else. In AO's case, almost every unit has a chance to do something unique, and often projectiles themselves have a chance to do something as well.

There is command called randcondjmp that is going to be your best friend should you desire functionality like this. randcondjmp functions by having a number (the chance out of 255 that it will jump) and then the thread it jumps to.

Let's try this.

MutaliskGndAttkInit:
playsnd 113 # Bullet\zmuFir00.wav
randcondjmp 100 MutaliskPelvicThrust
wait 1
turncwise 8
attackwith 1
turnccwise 16
attackwith 1
turncwise 8
wait 1
turncwise 12
attackwith 1
turnccwise 24
attackwith 1
turncwise 12
wait 1
turncwise 16
attackwith 1
turnccwise 32
attackwith 1
turncwise 16
wait 1
gotorepeatattk
goto MutaliskGndAttkToIdle

MutaliskPelvicThrust:
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
wait 1
attackwith 1
gotorepeatattk
goto MutaliskGndAttkToIdle


Feel free to compile with those changes. Your mutalisk should randomly fire a stream of rape at its target, and at other times fire its volley attack.

[image loading]


Extas

Q: Halp, icecc gives me an error when I try to save over my old iscript!

A: You need to save as a new iscript. I bounce between iscript in my scripts\ directory and one in the base directory. A bit of a pain in the ass...

Q: What should IceCC compiler look like if I'm adding to an existing iscript and not the default?

A:
[image loading]


I'll be creating video guides in the future that cover these subjects as well.
BookTwo
Profile Blog Joined May 2009
1985 Posts
June 09 2009 21:43 GMT
#2
The explosions look pretty fail imo.
Dgtl
Profile Blog Joined December 2008
Canada889 Posts
June 09 2009 21:48 GMT
#3
On June 10 2009 06:43 BookTwo wrote:
The explosions look pretty fail imo.

What are you talking about. Everything looks pretty good for the capabilities of SC. Really what I would like to see is a SC mod with all the SC2 units and buildings though :D
^______________^
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
Last Edited: 2009-06-09 21:50:47
June 09 2009 21:50 GMT
#4
On June 10 2009 06:48 Dgtl wrote:
Really what I would like to see is a SC mod with all the SC2 units and buildings though :D


There's a few mods out there that ripped graphics from sc2 screenshots, but honestly they look terrible and most of the things in sc2 you cannot replicate in sc1. :\
alexpnd
Profile Blog Joined March 2009
Canada1857 Posts
June 09 2009 21:53 GMT
#5
I think he's talking about the alpha values in the explosions (edges fade to black instead of transparent) I'm not sure how easy it is to replicate a good explosion though.
www.brainyweb.ca //web stuff!
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
Last Edited: 2009-06-09 21:56:35
June 09 2009 21:56 GMT
#6
Oh. That was intentional. In ITAS I wasn't too concerned about readability. But the effect I really aimed for isn't really possible in sc1.

Sc doesn't use alphas, either. :\ Just blending.
infinity2k9
Profile Blog Joined January 2009
United Kingdom2397 Posts
June 09 2009 22:08 GMT
#7
You ever tried modding Total Annihilation?
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
June 09 2009 22:12 GMT
#8
No. Was never interested in TA. I have modded games like diablo 2, supreme commander, homeworld 2, wc3, ect, though.
ArvickHero
Profile Blog Joined October 2007
10387 Posts
June 09 2009 22:16 GMT
#9
where can i get this mod haha
Writerptrk
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
June 09 2009 22:20 GMT
#10
ITAS was made available a while ago, here: http://www.campaigncreations.org/forum/index.php?topic=1465.0

You'll need the downgrader from broodwarai.com to go to version 1.10 for it.

And note it was discontinued at a very incomplete stage.

alexpnd
Profile Blog Joined March 2009
Canada1857 Posts
June 09 2009 22:39 GMT
#11
I recommend this mod as far as innovation
http://www.staredit.net/files/419/
www.brainyweb.ca //web stuff!
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
Last Edited: 2009-06-09 23:02:45
June 09 2009 23:01 GMT
#12
Heh, I've personally found nothing innovating about AA's slow gameplay, especially since all of the fleet-based mods that showed up at maplantis/SEN only showed up after I showed them ITAS.

ITAS keeps the gameplay fast, simple, and to the point, but allows plenty of micro and economic gameplay. Too bad sc is so limited, though. A lot of the things I wanted to do to balance strike craft vs capital ships just wasn't doable.
MiniRoman
Profile Blog Joined September 2003
Canada3953 Posts
June 09 2009 23:18 GMT
#13
Man all that shit looks beyond crazy. Must make a gundam wing mod or something lol.
Nak Allstar.
orgolove
Profile Blog Joined April 2009
Vatican City State1650 Posts
June 09 2009 23:27 GMT
#14
I approve. I always wanted to know how to mod SC. Thank you, and you should get the beta key.
초대 갓, 이영호 | First God, Lee Young Ho
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
June 09 2009 23:30 GMT
#15
On June 10 2009 08:18 MiniRoman wrote:
Man all that shit looks beyond crazy. Must make a gundam wing mod or something lol.


A guy did make a Gundam mod a looooong time ago (Was actually one of the first major TC's ever created, absolutely stunning graphic work) called Gundam Century. I think if you google it you can find it pretty easily.
fanatacist
Profile Blog Joined August 2007
10319 Posts
June 10 2009 03:03 GMT
#16
Your guides get sicker and sicker each time I swear, I was thinking after the first guide "how much more could there be to this mod stuff?" Thanks for answering me (:
Peace~
Shivaz
Profile Blog Joined March 2009
Canada1783 Posts
June 10 2009 03:22 GMT
#17
Ya Gundam Century has amazing unit models and graphic work, if people can get their hands onto it try it for a good laugh/fun. Funny thing is when I got my pirated version of SC in China back when I was about 9 years old it came with a couple different mods and versions and I always thought Gundam Century was the best one cause Terran owns lol...
Firebats do 32 damage +2/upgrade and can hit air , toss also owns and Zergs are terrible because the other two races got "upgraded" into gundams and Zerg stayed the same
ZeroCartin
Profile Blog Joined March 2008
Costa Rica2390 Posts
June 10 2009 03:49 GMT
#18
U are a god

Did u make all the 3d models? Great work!
"My sister is on vacation in Costa Rica right now. I hope she stays a while because she's a miserable cunt." -pubbanana
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
June 10 2009 03:59 GMT
#19
For the ITAS stuff, yes I did make the graphics myself.
funkie
Profile Blog Joined November 2005
Venezuela9376 Posts
June 10 2009 04:04 GMT
#20
This is fucking sparta man.

Holy shit, so awesome.
CJ Entusman #6! · Strength is the basis of athletic ability. -Rippetoe /* http://j.mp/TL-App <- TL iPhone App 2.0! */
scwizard
Profile Joined March 2009
United States1195 Posts
June 10 2009 13:21 GMT
#21
On June 10 2009 12:03 fanatacist wrote:
Your guides get sicker and sicker each time I swear, I was thinking after the first guide "how much more could there be to this mod stuff?" Thanks for answering me (:

Much much much more.

As I said, he hasn't gotten into memory patching yet, nor into stuff like editing the triggers for the melee gametype or any sort of AI what so ever.
Xeofreestyler
Profile Blog Joined June 2005
Belgium6774 Posts
June 10 2009 14:44 GMT
#22
This is awesome. Needs more exposure!

good work man
Graphics
IskatuMesk
Profile Blog Joined October 2008
Canada969 Posts
June 10 2009 19:25 GMT
#23
On June 10 2009 22:21 scwizard wrote:
Show nested quote +
On June 10 2009 12:03 fanatacist wrote:
Your guides get sicker and sicker each time I swear, I was thinking after the first guide "how much more could there be to this mod stuff?" Thanks for answering me (:

Much much much more.

As I said, he hasn't gotten into memory patching yet, nor into stuff like editing the triggers for the melee gametype or any sort of AI what so ever.


Yeah, I could write a dozen guides on AI if I got into that. For a moment I'm keeping it to the general stuff. I might write something on asset creation later down the line, but I'll probably keep that in my video tutorials.
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 14h 41m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 524
UpATreeSC 258
TKL 152
JuggernautJason93
BRAT_OK 88
IndyStarCraft 61
MindelVK 27
Railgan 11
StarCraft: Brood War
Shuttle 573
Dewaltoss 159
hero 106
910 27
Bale 8
Noble 4
Dota 2
qojqva2829
League of Legends
C9.Mang0123
Counter-Strike
fl0m2916
pashabiceps1385
Foxcn313
byalli172
adren_tv80
Heroes of the Storm
Liquid`Hasu348
Other Games
Liquid`RaSZi2116
FrodaN1453
Beastyqt769
B2W.Neo313
ArmadaUGS264
DeMusliM225
mouzStarbuck203
QueenE120
ToD77
KnowMe44
Mew2King40
OptimusSC21
Organizations
Other Games
gamesdonequick1655
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Kozan
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• intothetv
• IndyKCrew
StarCraft: Brood War
• HerbMon 24
• FirePhoenix11
• 80smullet 3
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2832
• lizZardDota257
League of Legends
• TFBlade908
• Shiphtur507
Other Games
• imaqtpie1359
Upcoming Events
The PondCast
14h 41m
OSC
16h 41m
Jumy vs sebesdes
Nicoract vs GgMaChine
ReBellioN vs MaNa
Lemon vs TriGGeR
Gerald vs Cure
Creator vs SHIN
OSC
1d 16h
All Star Teams
2 days
INnoVation vs soO
Serral vs herO
Cure vs Solar
sOs vs Scarlett
Classic vs Clem
Reynor vs Maru
uThermal 2v2 Circuit
2 days
All Star Teams
3 days
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
3 days
OSC
3 days
Replay Cast
4 days
Wardi Open
4 days
[ Show More ]
Monday Night Weeklies
4 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-01-13
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
OSC Championship Season 13
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
SC2 All-Star Inv. 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.