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.
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: Roy, Wilke801, NudeRaider, Oh_Man