PDA

View Full Version : Help with info!!!


canayma
06-02-2004, 3:03 PM
units that can only atack ground, can they be edited to atack also air units? for ex: fire bat can we give him a rifle to atack air??

thanks

canayma

Nahotnoj
06-02-2004, 3:24 PM
Yes, all you'd have to do is use iceCC to either add an air atk anbimation, or set the air attack to read off of ground attack instead of being non-existant.

King_Templar
06-02-2004, 3:28 PM
First, i am not a mod, so i can't move this, but it should probably be in the Maps and Mods depot...At least you didn't put it in the WarCraft town hall, like i did with one of my threads (my first. how embarassing.)

As to your question, YES it is possible. You have to do a little thing called iscript editting, which can be done with ICE and IceCC. If you don't have them, go to StarCraft.org where you can download them.

You have to add an attack animation using one of these programs, otherwise StarCraft will crash. (As a side note, editting like this is called modding, in case you didn't know.) After you edit the iscript (which i will get to in a moment) you give the Firebat the weapon for air in Arsenal III.

The iscript editting (which i can't do in ICE, but i can in IceCC, so that is what i will explain.) first requires you to decompile the Firebat's iscript. Open IceCC by double clicking the file named IceCCUI.jar and then select the firebat from the menu on the left. Click in the box that says Save To: and type in a name ending with .txt (Example: Firebat.txt), then click decompile and go to your IceCC directory. There should be a new text document in there named whatever you named it in the preceding step. Open it up and go to where it says something like GndattkInit, something to that effect, and after it will be something that looks like FirebatGndAttkInit, or something. Copy the FirebatGndAttkInit to the line that says something like AirAttkInit, replacing [NONE]. Next, put the line after GndAttkRepeat (or something like that) after AirAttkRepeat (again like that), again replacing the [NONE]. Save and close the document.

Next, open IceCC again and click on the Compiler tab at the top. Next click Add and select your document made in the preceding paragraph. Make sure that Merge with default iscript is selected and go to Save To: and type in iscript.bin and then click compile. Move the new iscript.bin file to your mod folder and put it in a subdirectory called scripts (note the s on the end.) and compile the mpq. If you don't know how to do that, read ChauSara's tutorial at StarCraft.org. Next, make a self executing mpq be running MPQDraft and selecting make self-executing mpq. then browse for your mpq and put a save spot and custom name. then click next. ignore pluggins, you don't have any for this. Click finish (or next, if until it says finish, but i think at this point that it does) and run your .exe. Firebats now can attack air.

The problem with this approach is that it only allows the Firebat to use its ground weapon for air. You can't get it to use another weapon unless you do additional editting of the iscript. What you do is go down to a line that looks kinda like this:

attack25 1

and make it look like this (if there is more than one, change them all.):

attack26

and then the Firebat will use the weapon that you selected for air.


Hope this helps. Feel free to ask for addition info if you need it.

Nahotnoj
06-02-2004, 3:33 PM
freezes? your sc freezes? I thought modded sc just crashed when you gave unit an attack that it didnt have an animation for...

StealthyDeath
06-02-2004, 3:39 PM
Starcraft should crash when there is something wrong with the iscript, but it can also freeze the game when you do something else.

King_Templar
06-02-2004, 3:41 PM
Sorry, i mean't crash. I do have a freezing problem in one of my mods (mentioned in sig.), but that is irrelevant. Either way, SC stops working.

Modred
06-02-2004, 3:56 PM
Man...I haven't worked with IceCC in a while...and there was always something wrong with my iscripts it seemed, even though I checked them over dozens of times.

EDIT: Actually, I think it was ArsenalIII that had the problem. I should have used ArsenalZero.

Anyway, sounds like KT has this covered.