Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [EUD] Documentation Thread
[EUD] Documentation Thread
Jan 13 2018, 12:36 am
By: Sie_Sayoka
Pages: < 1 2 3
 

Sep 29 2020, 5:31 pm Oh_Man Post #41

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

HOW TO MODIFY THE "RANK" LINE
This is the rank line:


It is the second line beneath the Unit Name. We can modify it to display information to the player. First things first, if your unit is not Terran you will have to make it Terran in order for this to work. Go to Datedit > Unit > Basic and change it here:



Next move from the Basic tab to the Staredit tab. Here you will find the list of ranks, which you can modify to say whatever you want. I've changed the rank of Admiral to say "Stunned!"



Now in order to apply this rank in game with triggers, you have to use an EUD action in TriggerEditor called SetDatfile, which looks like this:



This one action has a LOT of uses, but for my purposes I'm going to choose the following options:



Datfile = units.dat
Object = the unit you want to give the "rank" to.
OffsetName = Rank/Sublabel
DValue = this is a dropdown menu of all the ranks, which you will have modified to the string of your choice in the steps above.

Now, save your settings, boot up the game, and behold:



My Terran Zerg Defiler High Templar abomination can be Stunned! This can be turned off and on with triggers via Death Counters! For extra effect, you can modify two ranks to identical strings with different colours, then use death counter timers to toggle between the two strings, to create a flashing text effect! This will be handy to let the player know they've been stunned, or frozen, or poisoned, or whatever!

DAY & NIGHT SYSTEMS, BLINDING EFFECTS, ETC.
Say goodbye to using Medics blinds and burrowed units to modify vision radius, we have some handy new tools we can use which make them completely redundant.

In TriggerEditor use the SetDatfile EUD action, which looks like this:


Now select units.dat, the unit whose vision radius you want to modify, and select SightRange, and then choose an integer, with 1 being the smallest SightRange (comparable to a burrowed unit). For me, it now looks like this:



Now, when I open my map, you can see my new vision radius:


Now, there is another EUD action we can use, called SetLight:


We can use this to increase or decrease the in-game brightness (it doesn't affect the UI, thankfully). This is perfect for creating a moody night-time atmosphere, or a dark cave, especially when combined with the above technique.

You can also use this action to create cinematic scene changes: fading to black, centering location to your next scene, then unfading. And of course, if the player gets blinded by some spell, you can decrease their vision radius or brightness.

Here is a GIF which demonstrates SetLight in action:
https://i.imgur.com/Y2JMQxC.mp4

Good luck, mappers!

Post has been edited 4 time(s), last time on Sep 29 2020, 6:16 pm by Oh_Man.




Nov 10 2020, 12:06 am martosss Post #42



I am trying to figure out EUDs and I think it's useful to look at some "books" from the korean naver site.
https://cafe.naver.com/edac/book1678930
https://cafe.naver.com/edac/book2573592

Those(and others) can be found if you go to the main "edac" cafe and look on the left ... there's a "book" section .. then you choose which book and you can look at a list of contents and read stuff ... some things are explained well there, so I thought I'd add those links as an idea. They can be browsed with chrome + auto translate option(might need to switch it off-on each time you view a new page)

Ah, a little bump in the road is that you need to create a free naver account to access that content. I managed to do it and I can say, it's totally worth it :)

Post has been edited 1 time(s), last time on Nov 10 2020, 12:09 am by martosss. Reason: note on acc required



None.

Jan 14 2021, 5:07 am Ultraviolet Post #43

Don't stop till you get enough

Hey Oh_Man, thanks for your tutorial contribution. Would you be able to elaborate (and maybe add to your post) on how the SetLight function works? I'm specifically wondering what are the min and max values equal to? I assume SetLight 0 = complete darkness. At what value is complete light achieved?



My latest production: Impossible Ultraviolet

Jan 14 2021, 3:40 pm Oh_Man Post #44

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

I don't know what the value is for maximum light.




Jan 15 2021, 5:35 pm Sie_Sayoka Post #45



If it just uses the regular vision radius then the max should be 11? Anything higher will cause SC to crash.



None.

Jan 15 2021, 8:03 pm Ultraviolet Post #46

Don't stop till you get enough

Quote from Sie_Sayoka
If it just uses the regular vision radius then the max should be 11? Anything higher will cause SC to crash.

I just assumed light level and vision radius were different things since from Oh_Man's description it appears light level affects the entire screen regardless of unit selected.

Post has been edited 1 time(s), last time on Jan 16 2021, 8:59 am by Ultraviolet.



My latest production: Impossible Ultraviolet

Jan 16 2021, 6:36 am Sie_Sayoka Post #47



My mistake. If it's the brightness you can just change the settings to min/max to see what it'd look like.



None.

Jan 16 2021, 9:06 am Ultraviolet Post #48

Don't stop till you get enough

Quote from Oh_Man
I don't know what the value is for maximum light.

I'd even just be interested in the values you used for the purposes of making your gif.



My latest production: Impossible Ultraviolet

Jan 16 2021, 10:50 am Oh_Man Post #49

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

I just had a preserved trigger changing the value by one increment every trigger cycle with turbo-hyper triggers.

So what's that, like 24 increments per second? So the max value is probably around the 30 mark, I'd guess.




Options
Pages: < 1 2 3
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:13 pm]
Vrael -- and his professional casting is garbage too, he's constantly saying stuff like "Wow ask any pro, you should always. ALWAYS. always. have 17 zealots out by the 2 minute mark as zerg. ALWAYS."
[05:13 pm]
Vrael -- m.0.n.3.y
m.0.n.3.y shouted: Vrael why do you say that?
watch any of his stream, he is the whiniest little bitch on the planet
[02:29 pm]
MTiger156 -- u
[06:58 am]
NudeRaider -- m.0.n.3.y
m.0.n.3.y shouted: Mini Game Party was featured on Artosis's channel recently! Pretty cool win for UMS: https://www.youtube.com/watch?v=gSydfyOfOpI
"xKrayZee sux"
[04:36 am]
m.0.n.3.y -- Vrael why do you say that?
[12:03 am]
Vrael -- thats awesome money, for you, but artosis is a giant turd of a human being
[10:12 pm]
RdeRenato -- a
[09:59 pm]
m.0.n.3.y -- Mini Game Party was featured on Artosis's channel recently! Pretty cool win for UMS: https://www.youtube.com/watch?v=gSydfyOfOpI
[2021-1-17. : 3:47 pm]
C(a)HeK -- greetings all, friends, can you check my new post? :) http://www.staredit.net/topic/18183/
[2021-1-17. : 3:17 pm]
IlyaSnopchenko -- Neiv
Neiv shouted: Depending on your situation you may be able to use 18/19/20/21 to select all players in a force?
thanks! Will use the force # instead most likely, if they're in the same one
Please log in to shout.


Members Online: Vrael, jjf28, Roy