Staredit Network > Forums > Modding Assistance > Topic: Dereferencing actions
Dereferencing actions
Feb 2 2009, 6:11 pm
By: Biophysicist  

Feb 2 2009, 6:11 pm Biophysicist Post #1



I'm trying to make my mod cycle through all the units in the map and do stuff depending on the unit's kills. A_of-s_t said I'd need to dereference an action and make it use my code instead. How would I do this?

Also, how would I cycle through all the units? I know ASM, but I don't know how I'd do that. (I know how to do everything else I want to do, though.)

EDIT: That's actions as in trigger actions, he said I would have to "dereference" some trigger action and put that action in a preserved trigger with Always as the condition.

Post has been edited 1 time(s), last time on Feb 2 2009, 7:47 pm by TassadarZeratul.



None.

Feb 2 2009, 10:00 pm O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

Find the Action function pointer table and replace the pointer you want with the pointer to your code.
Find the unit node array. There is 1700 entries, each being 336 bytes.
I believe "+0x8F - BYTE bKillCount" is what you want.

Unit Table + 0x8F
Read it, do whatever, add 336.
Either keep a counter or check if it is >= unit table + 0x8F + 336*1700.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-9-14. : 3:21 pm]
Oh_Man -- Racoon City Remastered*
[2026-9-14. : 3:21 pm]
Oh_Man -- Join the front line SEN, DEFEND MANKIND. 2030 is just a number! https://scmscx.com/map/2fHHj96p
[2026-9-14. : 3:21 pm]
Oh_Man -- from the maker of the legendary Architect RPG, the peerless Racoon City, the capitvating One Piercing Note, comes another creation minutes in the making
[2026-9-14. : 11:15 am]
Oh_Man -- heh heh thanks for the minerals suckers, now it's time to quit while i'm ahead
[2026-9-14. : 1:01 am]
Oh_Man -- Heroes of the Storm literally died and was revived before we got next SC game. Wb Loveless, u cooking any UMS for us?
[2026-9-13. : 11:35 pm]
LoveLess -- getting diablo 5 and wow 4 before starcraft ghost
[2026-9-13. : 9:22 pm]
RIVE -- To be fair, I used to post custom emotes back when I still used the forums.
[2026-9-13. : 12:54 pm]
l)ark_ssj9kevin -- RIVE
RIVE shouted: 💯
holy shit did you just use an emoji on SEN that feels illegal 🍆
[2026-9-13. : 10:24 am]
Moose -- Heinermann
Heinermann shouted: new era of SC and it's just some shooter they're gonna cancel before 2030
StarCraft 2: Ghost 2, The Reghostening
[2026-9-13. : 3:38 am]
Symmetry -- :wob:
Please log in to shout.


Members Online: Heinermann, Zoan