Staredit Network

Staredit Network -> Concepts -> TRIGGERS OF GOD
Report, edit, etc...Posted by Mr_Mooo_Cow(U) on 2005-07-29 at 02:34:07
QUOTE(devilesk @ Jul 29 2005, 01:05 AM)
Okay since Mooo isn't responding on bnet I'll just ask a few simple yes/no questions to help me understand a little bit about what I don't quite understand yet.

Would a specific unit have the same address if it were in the same slot each time?

Basically I don't quite understand the relationship between the address and the slot, and what exactly the address is.

Are there different addresses for every unit in every slot possible?
[right][snapback]273180[/snapback][/right]


1) Yes figuring sc doesnt use dynamic addresses
2) I would believe so... maybe? happy.gif
Report, edit, etc...Posted by pimpinelephant on 2005-07-29 at 03:15:08
ok so i have been trying to change the portrait of units, i inserted the thing in the calculator, and it gave me the trigger, i used the trigger and it worked perfectly for the marine, but how would i change the unit portrait of another unit, like a dropship? and whats the trigger for getting the portrait of the mercenary guy?
Report, edit, etc...Posted by Mr_Mooo_Cow(U) on 2005-07-29 at 03:33:02
like i said before in the editor delete the unit currently beign effected, place the new unit that you want to be effected thats it. you can put the old unit back if you want doesnt matter the new unit will be effected.

p.s. im working on a list of weapons that work, and i noted which ones do not have animations.
Report, edit, etc...Posted by pimpinelephant on 2005-07-29 at 03:45:13
oh i c, thanks mooo. ive been trying to change the cooldown rate of the weapons, i just need some clarification, does setting the deaths to 1 make it the fastest and setting more deaths make it go slower? thats my conclusion cuz ive been testing this for a while now. actually it seems 1 is the normal settings.

putting the unit i want with the portrait first doesn't work for me... it always changes the marines portrait, all of them, every time. the trigger i used was

SetDeaths(P6, Add, 3, -29646);

oh yeah, whats the trigger for getting the portrait of the mercenary guy?
Report, edit, etc...Posted by Mr_Mooo_Cow(U) on 2005-07-29 at 04:02:54
yeah 1 would be the fastest but according to dk you cant put in 0 but i did 0 and it worked, except it was the same as 1.

EDIT: lmao use aresenel 3 ....
Report, edit, etc...Posted by pimpinelephant on 2005-07-29 at 04:08:51
Nice list.

i have a few questions though:

how do i apply this in order to change the weapon of a marine?

i know how to make a dropship comine with a tank, how would i combine a marine with another unit?

how can i apply portraits to another unit other than a marine?

whats the trigger for the portrait of the mercenary unit?
Report, edit, etc...Posted by Mr_Mooo_Cow(U) on 2005-07-29 at 04:33:40
this is how i would do it... make this trigger:

Condition: Always();

Actions:

SetDeaths(P1, Add, 90, -29572);
SetDeaths(P1, Add, 90, -29641);
SetDeaths(P5, Add, 90000, -29778);

I think thats like mind control.

test the map and see what unit got mind control, if its not the marine then leave the game, open SF and delete the unit that got mind control and place a marine, then you can put back the unit you deleted if you want... that should work.
Report, edit, etc...Posted by pimpinelephant on 2005-07-29 at 04:40:21
QUOTE(Mr_Mooo_Cow(U))
this is how i would do it... make this trigger:

Condition: Always();

Actions:

SetDeaths(P1, Add, 90, -29572);
SetDeaths(P1, Add, 90, -29641);
SetDeaths(P5, Add, 90000, -29778);

I think thats like mind control.

test the map and see what unit got mind control, if its not the marine then leave the game, open SF and delete the unit that got mind control and place a marine, then you can put back the unit you deleted if you want... that should work.

i did that, but what ended up happening was the Terran Wraith had an attack called Terran Siege Tank and the picture was a marine...

[attachmentid=12246]

I tried it again, this time with 95, but instead of Terran Siege Tank as the attack, it was Jim Raynor, lol

ok, mooo, i have been testing your list, its way off for me, i have so far:

1 - Default
2 - ATA Lasers Battery
5 - Flamethrower
19 - Suicide (Infested Terran) (this one is pretty cool, it kills everything below it and its still unhurt)
20 - Parasite
25 - Phase Disruptor
90 - Terran Siege Tank
95 - Jim Raynor

am i doing something wrong or something? is it just me or are the triggers different for other people, cuz the trigger for loading tanks is

SetDeaths(P3, SetTo, 11, 14413);

but for me it is

SetDeaths(P3, SetTo, 3, 14413);

does Add and SetTo make a difference? i have been using Add instead of SetTo.
Report, edit, etc...Posted by Carlsagan43 on 2005-07-29 at 10:49:25
Um, weapon 109 is subteraenian spines, from the lurker. Just look in arsenal III to find the weapons IDs


QUOTE
does Add and SetTo make a difference? i have been using Add instead of SetTo.


Add insures that you are only editing one of the bytes. SetTo edits all four bytes
Report, edit, etc...Posted by KrAzY on 2005-07-29 at 10:55:57
Since a guest member of SEN told me to do this:

Sarah Kerrigan the Nuker
Cloaked Arbiter
Goliath Pilot

[attachmentid=12248]
Report, edit, etc...Posted by hynk on 2005-07-29 at 11:06:06
Moo, for you list of weapons and crap, what do those triggers do? Do they change the attack animation of the unit? Or what?
Report, edit, etc...Posted by blizter on 2005-07-29 at 11:08:15
This is my Test map smile.gif Now i need to understand how to modify units with id higher than 3 on 1 bytes. And Do not atk ground with scourge Do not atk with carrier Do not attack air with probe tongue.gif AND ATTACK with rine tongue.gif
Report, edit, etc...Posted by Blu on 2005-07-29 at 11:17:07
Anyone know why i cant use these triggers? Im using starforge plus, and dled the patch, and now i cant use triggers along with unit editor :/
Report, edit, etc...Posted by i-beat-u on 2005-07-29 at 11:32:00
SetDeaths(P1, Add, 90, -29572);
SetDeaths(P1, Add, 90, -29641);
SetDeaths(P5, Add, 90000, -29778);
Whenever i do that for conditions it says

-29572
Parameter alias not recognized.

am i an idiot? what can i do to fix this??? helpsmilie.gif

What trigger should i do to give P8's Jim Raynor a Nuke For attack??? And Shields
^(thats the only raynor in map)
Report, edit, etc...Posted by hynk on 2005-07-29 at 11:48:53
QUOTE(i-beat-u @ Jul 29 2005, 10:32 AM)
SetDeaths(P1, Add, 90, -29572);
SetDeaths(P1, Add, 90, -29641);
SetDeaths(P5, Add, 90000, -29778);
Whenever i do that for conditions it says

-29572
Parameter alias not recognized.

am i an idiot? what can i do to fix this??? helpsmilie.gif

What trigger should i do to give P8's Jim Raynor a Nuke For attack??? And Shields
                                                      ^(thats the only raynor in map)

I got the same problem... =/
Report, edit, etc...Posted by blizter on 2005-07-29 at 11:48:58
You cant have a nuke for atk but for the sheild :

To achieve this offset, use Unit ID -29788 with player 3 on byte 1

Jim Raynor ID is 20

http://www.staredit.net/index.php?act=Atta...e=post&id=12140

look for number 20

the number under it is 1 (1 = 1, 2 = 256 , 3 = 256*256, 4 = 256*256*256) and the player is 8 so you do

SetDeath(p8,Add,1,-29788);

thats it. It should work
example :
SetDeath(p3,add,256,-29788);

for the ghost


if you want both marine and ghost, basicaly you can because its the same player (you do add 1 then add 256)

slower way is
SetDeath(p3,add,1,-29788);
Then
SetDeath(p3,add,256,-29788);

faster way is
SetDeath(p3,add,257,-29788);
Report, edit, etc...Posted by DiscipleOfAdun on 2005-07-29 at 12:00:23
QUOTE(devilesk @ Jul 29 2005, 12:05 AM)
Okay since Mooo isn't responding on bnet I'll just ask a few simple yes/no questions to help me understand a little bit about what I don't quite understand yet.

Would a specific unit have the same address if it were in the same slot each time?

Basically I don't quite understand the relationship between the address and the slot, and what exactly the address is.

Are there different addresses for every unit in every slot possible?


As long as you remember the order they are placed on the map, you should be able to figure out the unit that it is. Also, once ingame, they also follow this pattern. That way, RPG could be managed with creating new units and changing their stats.

The address is the first part of a 148 byte structure that each unit has. It contains most of the unique data for that unit. The way it is filled is determined by the order of the units in the scm/scx file. The first unit goes in the first slot. The next in the last, and then backward to the 2nd slot.

Yes, they are all different.

So, to change the HP of just the first unit on the map(whatever it is), you'd need: 5BC690 - deaths of unit 14411 for player 4 - FIRST UNIT HP AMOUNT * 256

If you want the second units HP:
644768 - deaths of Unit ID 26021 for player 2

So, figure out the beginning of the structure for that paticular unit. Unless it is the first, it should be, this is all in hex, 644760 - (148 * (Order Placed - 1)). Don't forget what counts as a unit. That means subunits.
Report, edit, etc...Posted by Ninebreaker on 2005-07-29 at 15:22:36
I tried giving my bc emp shockwave,

1.Placed BC then start location
2.Trigger:SetDeaths(P1, Add, 18, -29572);
SetDeaths(P1, Add, 18, -29641);
SetDeaths(P5, Add, 18, -29778);
Didn't work, I think i was supposed to change the players but i didnt know what to.

EDIT: I just tried it with wraith and instead of EMP is gave it seeker spores...
Report, edit, etc...Posted by blizter on 2005-07-29 at 15:29:03
QUOTE(Ninebreaker123 @ Jul 29 2005, 02:22 PM)
I tried giving my bc emp shockwave,

1.Placed BC then start location
2.Trigger:SetDeaths(P1, Add, 18, -29572);
              SetDeaths(P1, Add, 18, -29641);
              SetDeaths(P5, Add, 18, -29778);
Didn't work, I think i was supposed to change the players but i didnt know what to.

EDIT: I just tried it with wraith and instead of EMP is gave it seeker spores...
[right][snapback]273383[/snapback][/right]


Its because bc have ID 12 i think... you need to add 3 player (Btw only wraith work for me :\ ) Look my map smile.gif

[EDIT]

Btw about the weapons, if you want the weapon Example: 45. you need to put 44 or 46 (i dont remember)
Report, edit, etc...Posted by Ninebreaker on 2005-07-29 at 15:36:10
I think we should all make a list, done by tests
Report, edit, etc...Posted by i-beat-u on 2005-07-29 at 15:40:54
All i want to know is what i put under
player :
Condition :
Action :
to make player 8's Raynor have shield and nuke for attack (if its possible)
(i dowloaded the patch but i guess i put it in wrong spot it still said not recognized)
not to sound whiney or anything but helpsmilie.gif me helpsmilie.gif me helpsmilie.gif me helpsmilie.gif meeeeeeeeeeeeeeee
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-29 at 16:28:08
QUOTE(Subrosian @ Jul 28 2005, 09:47 PM)
I also tried out the command you showed as an example on Page 12 and it still doesn't work.

SetDeaths(P2,Setto,3,-29587);

What it says is:
-29587
Parameter alias not recognized.

[right][snapback]273121[/snapback][/right]


You need DK's custom .lst files. They've been posted twice on this list, they let you but in UID's in SF.


QUOTE(pimpinelephant @ Jul 29 2005, 01:40 AM)
QUOTE(Mr_Mooo_Cow(U))
this is how i would do it... make this trigger:

Condition: Always();

Actions:

SetDeaths(P1, Add, 90, -29572);
SetDeaths(P1, Add, 90, -29641);
SetDeaths(P5, Add, 90000, -29778);

I think thats like mind control.

test the map and see what unit got mind control, if its not the marine then leave the game, open SF and delete the unit that got mind control and place a marine, then you can put back the unit you deleted if you want... that should work.

i did that, but what ended up happening was the Terran Wraith had an attack called Terran Siege Tank and the picture was a marine...

[attachmentid=12246]

I tried it again, this time with 95, but instead of Terran Siege Tank as the attack, it was Jim Raynor, lol

ok, mooo, i have been testing your list, its way off for me, i have so far:

1 - Default
2 - ATA Lasers Battery
5 - Flamethrower
19 - Suicide (Infested Terran) (this one is pretty cool, it kills everything below it and its still unhurt)
20 - Parasite
25 - Phase Disruptor
90 - Terran Siege Tank
95 - Jim Raynor

am i doing something wrong or something? is it just me or are the triggers different for other people, cuz the trigger for loading tanks is

SetDeaths(P3, SetTo, 11, 14413);

but for me it is

SetDeaths(P3, SetTo, 3, 14413);

does Add and SetTo make a difference? i have been using Add instead of SetTo.
[right][snapback]273269[/snapback][/right]


Add adds, and Setto sets. If you set a byte like this:

00 F5 AB 56

to 1 with setdeaths(...setto,1...), the 4-byte long becomes this:

01 00 00 00

If you add 1 it becomes this:

01 F5 AB 56

but if you have this byte:

06 07 0B 1C

and you set to 7 you get

07 00 00 00

but if you add 7 you get

0D 07 0B 1C

which isn't the same byte 1 value. Note that these exotic deaths are not all 00 00 00 00 as defaults. The shield bytes for toss units look like this:

01 01 01 01

And anything else will have their default values.

QUOTE(i-beat-u @ Jul 29 2005, 08:32 AM)
SetDeaths(P1, Add, 90, -29572);
SetDeaths(P1, Add, 90, -29641);
SetDeaths(P5, Add, 90000, -29778);
Whenever i do that for conditions it says

-29572
Parameter alias not recognized.

am i an idiot? what can i do to fix this??? helpsmilie.gif

What trigger should i do to give P8's Jim Raynor a Nuke For attack??? And Shields
                                                      ^(thats the only raynor in map)
[right][snapback]273349[/snapback][/right]


Again, you need the custom .lst files.

I'm making some major improvements to the calculator, will take ~40 minutes.

EDIT: memcalc now converts players over 9 to values you can use. I'm writing a second calculator base on dropdown menus where it shows you the byte for each offset and each unit.
Report, edit, etc...Posted by Subrosian on 2005-07-29 at 16:32:18
QUOTE(DT_Battlekruser @ Jul 29 2005, 02:28 PM)
You need DK's custom .lst files.  They've been posted twice on this list, they let you but in UID's in SF.

QUOTE(Subrosian)
QUOTE(Deathknight)
For those with the crashing SF, I posted this on like, page 4 or something...
Attached File Data.zip ( 1.9k ) Number of downloads: 99


Put those in your Starforge data folder.

p13-28 are reserved in triggers.
*




Still doesn't work for me...

I replaced the actions.lst/conditions.lst files that were from your old attachment with these ones and it still says:
Run-time error '35601':
Element not found
when I open a edit: the TRIGGERS of a map with extended triggers.

I know that I put the files in the right place because the date modified is the same in the zip file and Starforge\data.


I already said twice that I already got the list files and it still doesn't work.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-29 at 16:34:44
Woops, wrong quote. You can't view that trigger, DK hexed the trigger so that is has the overflow value for the UID, rather than the negative UID.
Report, edit, etc...Posted by pimpinelephant on 2005-07-29 at 17:23:39
how do i apply new weapons to a different unit other than a wraith like a marine? (do i need to delete all the units then place the marine first? or is the player and/or unit number supposed to be different?)

i know how to make a dropship comine with a tank, how would i combine a marine with another unit? (i know for the uploadable tank its SetDeaths(P3, SetTo, 11, 14413); or its (for me) SetDeaths(P3, SetTo, 3, 14413);, but what do i need to change for it to effect a marine?)

how can i apply portraits to another unit other than a marine? (do i do the same method as said in the first question? or is the player and/or unit number supposed to be different?)

whats the trigger for the portrait of the mercenary unit? (what do i set the deaths to?)
Next Page (17)