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 :???:





My Projects:

Impossible Ultraviolet | Impossible UV2 | Impossible UV3
Mercenaries 2020 | Mercenaries III
Squad Defense

Legacy Projects (No guarantee of functionality in modern SC):

Pixel Adventure 2 | Space Snipers | Control the Ball

______________________________________________

Join me in Torn City

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



My Projects:

Impossible Ultraviolet | Impossible UV2 | Impossible UV3
Mercenaries 2020 | Mercenaries III
Squad Defense

Legacy Projects (No guarantee of functionality in modern SC):

Pixel Adventure 2 | Space Snipers | Control the Ball

______________________________________________

Join me in Torn City

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



My Projects:

Impossible Ultraviolet | Impossible UV2 | Impossible UV3
Mercenaries 2020 | Mercenaries III
Squad Defense

Legacy Projects (No guarantee of functionality in modern SC):

Pixel Adventure 2 | Space Snipers | Control the Ball

______________________________________________

Join me in Torn City

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.



My Projects:

Impossible Ultraviolet | Impossible UV2 | Impossible UV3
Mercenaries 2020 | Mercenaries III
Squad Defense

Legacy Projects (No guarantee of functionality in modern SC):

Pixel Adventure 2 | Space Snipers | Control the Ball

______________________________________________

Join me in Torn City

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-10-31. : 12:30 am]
ClansAreForGays -- When you join a pub lobby because you see 7/8 players, but then realize host is bating you with computers. :flamer: :flamer:
[2024-10-30. : 11:48 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-10-30. : 6:24 pm]
Ultraviolet -- :wob:
[2024-10-29. : 4:33 pm]
Vrael -- :wob:
[2024-10-29. : 1:32 pm]
Zoan -- :wob:
[2024-10-28. : 5:21 pm]
Ultraviolet -- :wob:
[2024-10-27. : 4:34 pm]
jjf28 -- :wob:
[2024-10-27. : 9:01 am]
Zycorax -- :wob:
[2024-10-27. : 3:31 am]
RIVE -- :wob:
[2024-10-26. : 7:12 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: Roy, RIVE