Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: [EUD] Self-modifying Trigger
[EUD] Self-modifying Trigger
Jan 22 2014, 2:00 pm
By: trgk  

May 12 2014, 3:42 pm trgk Post #21



cf) Is anybody interested in EUD actions here?


Anyway, basic concept #2 : Variable.

With Set Deaths actions, you can
[ add / subtract / set ] [ specific address ] to [ specific value ]

Since
- [ add / subtract / set ]
- [ specific address ]
- [ specific value ]
is stored somewhere in SC memory, they can be modified with SetDeaths if their address is known.
eudasm automatically calculates every trigger, conditions, and actions's addresses and makes it visible to eudasm code.

Collapsable Box





Consider the following code

Code
Trigger: @B
   Actions:
       SetDeaths(0, SetTo, 0, 0) @b+20 @bplayer+16 @bmodtype+24



In trigger B,
b = (Address of SetDeaths action) + 20
bplayer = ( same ) + 16
bmodtype = ( same ) + 24

Refering to CHK reference says that
- bmodtype is a pointer to ( [ add / subtract / set ] + some other things )
- bplayer is a pointer to [ specific address ]
- b is a pointer to [ specific value ]


We call that
- Trigger B declares variable b

To use variable b, adjust memory at b, bplayer, and bmodtype, and call trigger B.


Example)
Code
Trigger: @B
   next @B_next
   Actions:
       SetDeaths(0, SetTo, 0, 0) @b+20 @bplayer+16 @bmodtype+24

Trigger: @main // assume that this trigger is executed first
   next B

   Actions:
       SetDeaths(&b, SetTo, 1234, 0)  // b = 1234

       SetDeaths(&bplayer, SetTo, &0x123456, 0)    //  target address. &(0x123456) = epd player corresponding to 0x123456
       // bplayer : offset. &bplayer : epd player index

       SetDeaths(&bmodtype, SetTo, 0x072D0000)   // = (Set To = 0x072D0000)

       // Trigger B will be executed after here, and SetDeaths statement in B will do
       // *(ulong*)0x123456 = b
       // We can add/sub/set arbitary address with variable.



// incomplete



EUD

May 12 2014, 4:09 pm CecilSunkure Post #22



I'm interested in the collective knowledge about EUD actions, but no I won't myself use them to make anything. Thanks for posting up this information though!



None.

May 12 2014, 8:52 pm LoveLess Post #23

Let me show you how to hump without making love.

What it comes down to is that we enjoy learning new tricks and methods behind BW, but as a mapping community, most of us prefer to avoid EUD Actions as it restricts the accessibility of the map.

Anything learned on the EUD Conditions side, however, we are all eager to learn even the smallest things because they can vastly what we are able to create. Examples of such things are some of the projects by Kaias and Lethal, as they made things that were previously though impossible a realistic goal through a series of workaround methods using one or two complicated systems. All of that was made possible by Oreo and memory reading.



None.

Jun 14 2014, 1:28 am trgk Post #24



Another example. Zergling gets slower when they are not on the creep.
[attach=9526]

Attachments:
creeptest.scx
Hits: 1 Size: 107.82kb
fafasf.png
Hits: 0 Size: 497.75kb

Post has been edited 1 time(s), last time on Jun 14 2014, 1:34 am by trgk.



EUD

Oct 17 2014, 2:48 am trgk Post #25



Example : Multiplayer key detection

Select SCV, Press Z, X key, and SCV will move accordingly.

Attachments:
out.scx
Hits: 0 Size: 100.52kb

Post has been edited 5 time(s), last time on Oct 17 2014, 9:57 am by trgk.



EUD

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[10:02 pm]
Symmetry -- I was really just figuring out how to compile
[10:02 pm]
Symmetry -- I didn't make it do anything
[09:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[08:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[08:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[06:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: IskatuMesk