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
It's a text-based MMORPG, kind of like GTA, and played from your browser. Sounds silly, but it's fun. I get a referral reward if you join after clicking my link. Let me know if you do, and if you make it to level 10, I'll send you the reward I get.

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
It's a text-based MMORPG, kind of like GTA, and played from your browser. Sounds silly, but it's fun. I get a referral reward if you join after clicking my link. Let me know if you do, and if you make it to level 10, I'll send you the reward I get.

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
It's a text-based MMORPG, kind of like GTA, and played from your browser. Sounds silly, but it's fun. I get a referral reward if you join after clicking my link. Let me know if you do, and if you make it to level 10, I'll send you the reward I get.

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
It's a text-based MMORPG, kind of like GTA, and played from your browser. Sounds silly, but it's fun. I get a referral reward if you join after clicking my link. Let me know if you do, and if you make it to level 10, I'll send you the reward I get.

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:58 pm]
O)FaRTy1billion[MM] -- wb sen
[2024-9-30. : 6:06 pm]
NudeRaider -- Zoan
Zoan shouted: NudeRaider :O so that's why we get spambots about exercise equipment: they're just mineral farmers
of course, hired by me. Get on my level!
[2024-9-30. : 6:05 pm]
Zoan -- NudeRaider
NudeRaider shouted: just post more, plebs :ego:
:O so that's why we get spambots about exercise equipment: they're just mineral farmers
[2024-9-30. : 1:48 pm]
Vrael -- they made a movie about it and everything: https://en.wikipedia.org/wiki/Free_Willy
[2024-9-30. : 1:37 pm]
Oh_Man -- i dont know who this will guy is but he has been in captivity for far too long. free will!
[2024-9-30. : 8:41 am]
NudeRaider -- just post more, plebs :ego:
[2024-9-29. : 8:45 pm]
RIVE -- The top 1% of the top 1% are soulless, mod-entities who control more minerals than the bottom 99%
[2024-9-29. : 4:31 pm]
Vrael -- down with the mods! take their minerals!
[2024-9-29. : 4:31 pm]
Vrael -- if the top 1% just paid their fair share of minerals we all could just have minerals dammit
[2024-9-28. : 5:39 pm]
RIVE -- Minerals should be taxed
Please log in to shout.


Members Online: RIVE, Roy, xiongba, jun3hong, RexyRex