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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Roy, Zoan