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.
[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?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: MetalGear