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.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: jjf28