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.
[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
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Oh_Man