Staredit Network

Staredit Network -> Modding Assistance -> Labels
Report, edit, etc...Posted by Heavyclone on 2006-10-24 at 20:58:27
I bet $10 some one will say be more specific if I put it simple, so heres a not so less simple:

My probe is trying to attack air, BUT it doesnt, it stops me controlling it and eventually crashes the game.
NOW before you say "well you need to edit the Iscript..." I DID. In the Air Attack it says "[none]" so I replace it with: "ProbeAirAttkInit" I then scroll down and enter the same thing into the script as followed:

CODE

ProbeAirAttkInit
    attack25          2
    wait 10
    attack25         2
    wait                15
    useweapon   13                             # Nuclear Missle
    attack25         1
    wait               20
   goto               ProbeAirAttkInit


"It then comes up with the following erroes whenI try and compile it:

C:/Documents and Settings\Users\My Documents\StarCraft Stuff\IceCC\WTF PROTOSS\Probe:83: error :instruction 'ProbeAitAttkInit' not connected to a label; discarding instruction untill next label

C:/Documents and Settings\Users\My Documents\StarCraft Stuff\IceCC\WTF PROTOSS\Probe:83: error :unknown instruction opcode 'ProbeAitAttkInit'

C:/Documents and Settings\Users\My Documents\StarCraft Stuff\IceCC\WTF PROTOSS\Probe:83: error :Can't find label name 'ProbeAitAttkInit'"


There, they are my 3 errors, but I don't see whats wrong with my code. I really need help on this, I just don't get why it doesnt connect.
Report, edit, etc...Posted by DiscipleOfAdun on 2006-10-24 at 21:02:45
lol, labels need a colon after them.
Report, edit, etc...Posted by Heavyclone on 2006-10-24 at 21:39:21
aaaaaaaaaaaaah cursing.gif im so stupid bored.gif god, how could I forget >.< thx for telling me that.

ADDITION:
i ask too many questions but I have a major problem (this was hapening before I put the colon on the Script)

Here is my following Script for the Probe:

CODE

# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data\scripts\iscript.bin'
# created on: Wed Sep 21 21:50:02 2005
# ----------------------------------------------------------------------------- #

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 137 Probe (protoss\probe.grp)
.headerstart
IsId            156
Type            21
Init            ProbeInit
Death           ProbeDeath
GndAttkInit     ProbeGndAttkInit
AirAttkInit     ProbeAirAttkInit
SpAbility1      [NONE]
GndAttkRpt      ProbeGndAttkInit
AirAttkRpt      [NONE]
SpAbility2      [NONE]
GndAttkToIdle   ProbeGndAttkToIdle
AirAttkToIdle   [NONE]
SpAbility3      [NONE]
Walking         ProbeWalking
Other           ProbeGndAttkToIdle
BurrowInit      [NONE]
ConstrctHarvst  [NONE]
IsWorking       ProbeIsWorking
Landing         [NONE]
LiftOff         [NONE]
Unknown18       [NONE]
Unknown19       [NONE]
Unknown20       ProbeUnknown20
Unknown21       ProbeUnknown21
.headerend
# ----------------------------------------------------------------------------- #

ProbeInit:
imgul09         138 0 7 # ProbeShad (protoss\probe.grp)
playfram        0x00 # frame set 0
goto            ProbeGndAttkToIdle

ProbeGndAttkToIdle:
wait            1
       turncwise       360
       wait            1
       turncwise       360
       wait            1
       turncwise       360
       wait            1
       turncwise       360
       wait            50
       tmprmgraphicstart
       wait            25
       tmprmgraphicend
       wait            100
       goto                 ProbeGndAttkToIdle

ProbeDeath:
playsnd         598 # Protoss\PROBE\PPrDth00.WAV
imgol08         213 0 0 # ProtossBuildingExplosionSmall (thingy\tBangS.grp)
wait            3
end            

ProbeGndAttkInit:
       attack25       1
       turncwise      180
       wait               10
       turncwise      180
       wait               20
       attack25        2
       turncwise      180
       wait               10
       turncwise      180
       useweapon  15                             # Gemeni Missles
       wait               10
       turncwise      180
       wait               10
       turncwise      180
       wait                50
       goto              ProbeGndAttkInit

ProbeAirAttkInit:
    attack25          2
    wait 10
    attack25         2
    wait                15
    useweapon   13                             # Nuclear Missle
    attack25         1
    wait               20
   goto               ProbeAirAttkInit
       
ProbeWalking:
shvertpos       0
                 wait                             5
                 shvertpos                   1
                 wait                             5
                 shvertpos                   2
                 wait                             5
                 shvertpos                   3
                 wait                             5
                 shvertpos                   4
                 wait                            5
                 shvertpos                  5
                 wait                            50
                 shvertpos                   4
                 wait                             5
                 shvertpos                   3
                 wait                             5
                 shvertpos                   2
                 wait                            5
                 shvertpos                  1
                 wait                            5
                 shvertpos                  0
                 wait                            50
goto            ProbeGndAttkToIdle

ProbeIsWorking:
useweapon       63 # Particle Beam
wait            1
waitrand        8 10
goto            ProbeIsWorking

ProbeUnknown20:
       imgol08         235 0 0 # GoliathTurret (terran\goliathT.grp)

ProbeUnknown21:
imgol08         139 0 0 # Unknown139 (protoss\probe.grp)
goto            ProbeGndAttkToIdle


But, when I try to build a probe, it crashe and cloases down. So weird, I dont know whats wrong in there, I have checked over everything, I can't spot a thing wrong in my inexperience O.o bangin.gif

ADDITION:
ok, I dont think it's that script, it also crashes when I try building a fleet beacon, plz help somebody, it's so annoying, and I have no idea what can be causeing it crazy.gif
Next Page (1)