Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: <SOLVED> Giving cloaking ability to other units
<SOLVED> Giving cloaking ability to other units
Oct 23 2022, 1:57 pm
By: Psilance  

Oct 23 2022, 1:57 pm Psilance Post #1



EDIT FINAL: Giving marine cloak by forcing cloaking using secondaryOrderID. Learned it thanks to a post by some user called farty.

I used EUD Editor 3 version 0.14.2.1:

Trigger > Action
1. SetNextUnitPtrEpd -> Select a global variable you created for this purpose (idk what ptr and epd is so I used both).
2. CreateUnit -> Choose 1 of whatever unit you want but know that the global variable you chose before will refer to this unit.
3. SetCUnitepd -> Choose the global variable from before + secondaryOrderID + 109 + set to

In my example I named the global variable "Terr"

To turn off the cloak
SetCUnitepd -> Choose the global variable from before + secondaryOrderID + 110 + set to

109 and 110 are order IDs and there is a list here: http://farty1billion.dyndns.org/EUDDB/?pg=ref&a=orders

///////////////////// Old post:
I've been playing around in EUD Editor 3 trying on my own because I can't find any tutorials except for this one: https://github.com/Ar3sgice/eudtools/wiki/EUD-Tutorial:-How-to-make-units-other-than-spellcasters-cast-spells

But it's not a hold-your-hand-tutorial even though I understand it I don't know how he does it in the program like it is shown in the tutorial.


Is there a better tutorial and if not can somebody explain what he does at the EUD Editor 3 part at the end?

As an example in my struggle: It starts with some Korean and "Hydra" which translates to "Declare the variable Hydra".
How is that done?

then it goes to "onPluginStart".
so I would think there is a function/condition like that in the trigger editor but I couldn't find it.

So I continue in the code to "Set Animation value for Cast Disruption Web : SetTo 3".
And ofc I am just lost at this point.


Progress: I've gotten far enough to realize he is writing it in "Only Code" mode. And I've written "function onPluginStart" but then the tutorial shows two words that translates to "Arguments" and "Content".

It might help me to know which programming language this is. I've never seen anything like it. Looks like C++ with spacings for parameters and content and no () {}.

Post has been edited 11 time(s), last time on Oct 24 2022, 2:04 pm by Psilance.



None.

Oct 23 2022, 3:53 pm Psilance Post #2



EDIT: My hydralisk now casts lightning. Though I still don't understand the code especially the "hydra" parts. If anyone want to explain what is going on I'd appreciate it.

How does the "Set Hydra to next unit created" work? And have I done it correctly as seen in the image I've posted below? I've used the "SetNextUnitPtrEpd" and selected a global variable called Hydra because I didn't know how to declare a new variable in ez mode.

I've gotten some of the code down with the ez-mode, needless to say it doesn't do much if anything:




EDIT: I have discovered secondaryOrderId thanks to another post.

Post has been edited 6 time(s), last time on Oct 24 2022, 5:18 am by Psilance.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:34 am]
Symmetry -- Power to ya tokatta
[02:34 am]
Symmetry -- Jeez someone's modding SC64? I've never even hear of anyone trying
[02:27 am]
Symmetry -- if you're looking to upload a map put it on scmscx and link it here. the dldb is... inconsistent
[2026-8-25. : 12:51 pm]
Zakerozi -- Lel... This guy is probably a Zoomer :D :D :D
[2026-8-25. : 9:57 am]
NudeRaider -- dydwk474
dydwk474 shouted: HOW DO YOU EVEN UPLOAD FILE HERE THATS BULLCOWAP THE WEBSITE DUMB
mostly magic, but also doing a :wob:-raindance and sacrificing your firstborn. If that sounds like too much effort, just use www.scmscx.com
[2026-8-25. : 9:55 am]
NudeRaider -- Vrael, did you rename your account?
[2026-8-25. : 7:30 am]
dydwk474 -- HOW DO YOU EVEN UPLOAD FILE HERE THATS BULLCOWAP THE WEBSITE DUMB
[2026-8-25. : 7:30 am]
dydwk474 -- WHAT
[2026-8-24. : 1:15 am]
Symmetry -- There are so many people here I'm surprised we're still online :hurr:
[2026-8-23. : 9:47 pm]
Symmetry -- :wob::wob:
Please log in to shout.


Members Online: Moose, Dem0n, tokatta007