Staredit Network > Forums > Modding Assistance > Topic: Iscript..
Iscript..
Nov 1 2008, 7:19 pm
By: XenoBlight  

Nov 1 2008, 7:19 pm XenoBlight Post #1



i want to shoot battlecruiser like hell (ground). i placed 1cooldown on dataedit but ir didnt satisfy me
so i manage to mingle w/ iscript of battlecruiser i tried it and it didnt work.

Code
BattlecruiserInit:
    imgul               219 0 42     # BattlecruiserShad (terran\BattleCr.grp)
    playfram           0x00     # frame set 0
    goto               BattlecruiserGndAttkToIdle

BattlecruiserGndAttkToIdle:
    wait               125
    goto               BattlecruiserGndAttkToIdle

BattlecruiserDeath:
    playsnd             177     # Terran\BATTLE\tbaDth00.wav
    imgol               333 0 0     # TerranBuildingExplosionmedium (thingy\tBangL.grp)
    wait               3
    end                

BattlecruiserGndAttkInit:
    imgol               446 0 0     # BCLaserFireOverlay (thingy\elbBat.grp)
    goto               BattlecruiserLocal00

BattlecruiserLocal00:  (i remember it worked before but i think i forgot something....)
    wait               1
    attackwith         1
    wait               2
    attackwith         1
    wait               2
    attackwith         1

BattlecruiserLocal03:
    randcondjmp         192 BattlecruiserLocal01
    playsndrand         3 180 181 183     # Terran\BATTLE\tbapss00.wav, Terran\BATTLE\tbapss01.wav, Terran\BATTLE\tbapss03.wav
BattlecruiserLocal01:
    gotorepeatattk    
    goto               BattlecruiserGndAttkToIdle

BattlecruiserAirAttkInit:
    imgol               446 0 0     # BCLaserFireOverlay (thingy\elbBat.grp)
    goto               BattlecruiserLocal02

BattlecruiserLocal02:
    wait               1
    attackwith         2
    goto               BattlecruiserLocal03

BattlecruiserCastSpell:
    imgolorig           543     # Unknown543 (thingy\eycBlast.grp)
    goto               BattlecruiserGndAttkToIdle

BattlecruiserWalking:
    imgol               220 0 0     # BattlecruiserGlow (thingy\tbaGlow.grp)
    goto               BattlecruiserGndAttkToIdle

BattlecruiserWalkingToIdle:
    setvertpos         1      (up to know setvertpos puzzles me of its func.)
    waitrand           8 10  (and waitrand also...)
    setvertpos         2
    waitrand           8 10
    setvertpos         1
    waitrand           8 10
    setvertpos         0
    waitrand           8 10
    goto               BattlecruiserWalkingToIdle


Post has been edited 1 time(s), last time on Nov 1 2008, 7:28 pm by Reindeer Breeder. Reason: SEN's codeboxes are wayyyyyy too small.



None.

Nov 1 2008, 7:31 pm Symmetry Post #2

Dungeon Master

I don't understand the point of

Code
BattlecruiserLocal03:
   randcondjmp         192 BattlecruiserLocal01
   playsndrand         3 180 181 183     # Terran\BATTLE\tbapss00.wav, Terran\BATTLE\tbapss01.wav, Terran\BATTLE\tbapss03.wav
BattlecruiserLocal01:
   gotorepeatattk    
   goto               BattlecruiserGndAttkToIdle


Is that there for any particular reason? Try axing that part of the iscript and see if it works.



:voy: :jaff: :voy: :jaff:

Nov 2 2008, 9:52 am XenoBlight Post #3



umm... what i axing?



None.

Nov 2 2008, 11:52 am EzDay281 Post #4



Quote
umm... what i axing?
If you're asking what he wants you to "ax", then probably the unneeded part of the iscript - i.e., just imgol, wait-attack-wait-etc, playsndrand, repeat attack, goto atktoidle, instead of the randcndjump and unnecessary header jumps.

If you're asking what "axing" is, it means to remove ( like, "chopping off with an axe" ) .
Quote
(up to know setvertpos puzzles me of its func.)
(and waitrand also...)
Setvertpos moves the graphic up/down, which is why some air units "bounce" when idle, instead of just holding still.
Waitrand is like wait, except that it has more than 1 value and just chooses which time to use randomly.

'Twould help to tell what exactly happens when you attack with it - what goes wrong, how, and when.



None.

Nov 5 2008, 3:35 pm XenoBlight Post #5



so thats what setvertpos means...

sorry for the problem above. there was a mistake, i forgot to to add the .bin on the iscript file so it will natruraly wont work.

now the burst laser has 2 animation first it will fire a laser then a small explosion will appear. what i want is to replace the second animation to other one like nuclear explosion.

my problem is where and how on icecc should i do it?



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-26. : 7:14 pm]
Kyradax -- Hi
[2024-5-26. : 5:05 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-5-25. : 9:22 am]
Zycorax -- :wob:
[2024-5-23. : 3:50 pm]
Ultraviolet -- :wob:
[2024-5-23. : 6:26 am]
UndeadStar -- :wob:
[2024-5-22. : 6:10 am]
Riney -- Somethings never change.
[2024-5-22. : 6:10 am]
Riney -- I come back after 4 months. Post wob. Make a crappy post in Null. Hit a 0 in magic boxes.
[2024-5-22. : 6:00 am]
Riney -- :wob:
[2024-5-20. : 3:08 pm]
Sylph-Of-Space -- woah! nice! thank you!
[2024-5-20. : 4:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
Please log in to shout.


Members Online: IlyaSnopchenko, sethmachine, Ultraviolet