Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: EUD Workshop [Tutorials + Demos]
EUD Workshop [Tutorials + Demos]
Feb 27 2019, 8:06 am
By: MinuteMan  

Feb 27 2019, 8:06 am MinuteMan Post #1



This will hopefully be a page worthy of being stickied with some advanced tutorials on utilizing different EUD functions. This post will be edited as-needed, enjoy!

Requirements:
SCMDraft 2
TrigEdit++
EUD Editor 2
Included files(if applicable)

Changing Player, Minimap and Chat Colors
Collapse Box


Detecting Player Name
Collapse Box


Changing Player Name
Collapse Box


Detecting Key Presses
Tutorial was made before I had an account here; Roy was kind enough to post the guide at: http://www.staredit.net/topic/17739/

Using Text Effects
Collapse Box


Useful EUD Tricks

Use Arrays to store or convert data:
Collapse Box


Read data dynamically
Collapse Box


Edit Unit Stats/Display in Real-Time
Collapse Box


Attachments:
PColor.lua
Hits: 4 Size: 0.66kb
CheckName.tfn
Hits: 1 Size: 0.92kb
namechange.py
Hits: 6 Size: 5.06kb
customText.py
Hits: 1 Size: 27.51kb
texteffect.py
Hits: 2 Size: 19.97kb
eudx.py
Hits: 6 Size: 9.63kb

Post has been edited 28 time(s), last time on Mar 1 2019, 1:36 am by MinuteMan.




Feb 28 2019, 4:42 pm Oh_Man Post #2

Find Me On Discord (Brood War UMS Community & Staredit Network)

Great one dude. We're back in black!!






Mar 4 2019, 7:18 am Ultraviolet Post #3



I tried your tutorial to change player color, but got an error :???:






Mar 4 2019, 7:44 am MinuteMan Post #4



Quote from Ultraviolet
I tried your tutorial to change player color, but got an error :???:


Step 2: Create a folder called "lua" inside your scmdraft2 folder, place PColor.lua inside of the new lua folder


Without LUA file in LUA folder:


With LUA in LUA folder:


Post has been edited 3 time(s), last time on Mar 4 2019, 7:58 am by MinuteMan.




Mar 5 2019, 8:18 am Ultraviolet Post #5





I did do that first




Mar 5 2019, 8:31 am MinuteMan Post #6



What version of SCMdraft are you using? I believe it requires 1.8.0+




Mar 6 2019, 1:54 am Ultraviolet Post #7



Scmdraft 2 - 2019.02.13(W). It's the current unofficial release with cut/copy/paste locations enabled




Mar 6 2019, 3:17 am MinuteMan Post #8



Well all I can say is that specific error is because it doesn't recognize the "pcolor" function. It only does that if Pcolor.lua isnt inside that lua folder you made.
Also, in your example you have wrong syntax for Mcolor, will also give error if you try to use that.

You have MColor (4,0);

If only doing 1 color change needs to be:
MColor ({4, 0}), or MColor ({0, 0-255}, {1, 0-255}), for 2+ colors (add as you need)


Can also edit memory offset directly to achieve this, but I would like to resolve the issue as well.




Mar 9 2019, 1:19 am Ultraviolet Post #9



Quote from MinuteMan
Well all I can say is that specific error is because it doesn't recognize the "pcolor" function. It only does that if Pcolor.lua isnt inside that lua folder you made.
Also, in your example you have wrong syntax for Mcolor, will also give error if you try to use that.

You have MColor (4,0);

If only doing 1 color change needs to be:
MColor ({4, 0}), or MColor ({0, 0-255}, {1, 0-255}), for 2+ colors (add as you need)


Can also edit memory offset directly to achieve this, but I would like to resolve the issue as well.

Yeah, I'm honestly not too attached to it since there are other ways to modify player color, and I don't need to do much color changing. I also realized that mistake in my syntax, and tried doing it the proper way, still got the same error, though. And good diligence making sure I have PColor.lua in the lua folder :P I do. Before I posted I had put PColor.lua in the plugins folder and then realized it was actually supposed to go in the lua folder, so I made that change. Didn't resolve the issue, though.




Aug 29 2019, 5:12 am Fatalsoldier Post #10



I can only get player 2 to change colors




Aug 29 2019, 6:58 am T-warp Post #11

Unlimited N-word pass winner

Quote from Fatalsoldier
I can only get player 2 to change colors
You can use EPD Editor. There's an action to change player color and so much more.




Aug 30 2019, 12:53 pm Fatalsoldier Post #12



Quote from T-warp
Quote from Fatalsoldier
I can only get player 2 to change colors
You can use EPD Editor. There's an action to change player color and so much more.

Thanks T-Warp your editor is way more easier to use then writing the trigger myself haha. Do you happen to have a solution for maybe giving units the ability to create units or be able to upgrade talents by themselves?



None.

Aug 30 2019, 4:55 pm T-warp Post #13

Unlimited N-word pass winner

Quote from Fatalsoldier
Quote from T-warp
Quote from Fatalsoldier
I can only get player 2 to change colors
You can use EPD Editor. There's an action to change player color and so much more.

Thanks T-Warp your editor is way more easier to use then writing the trigger myself haha. Do you happen to have a solution for maybe giving units the ability to create units or be able to upgrade talents by themselves?
No idea. I would try changing button set to factory, change unit advanced properties to act as a factory. Other than that, no idea.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Roy