#Custom announcement label

38 messages · Page 1 of 1 (latest)

unreal cosmos
#

How can I change this?

grand helm
#

you'd need to make a fork of the MainModule

unreal cosmos
#

I'll check it out.

grand helm
#

this is a pretty advanced operation if you are not a scripter

#

open that module in Studio and you can replace any strings shown

#

then replace the require call in the loader to use that module

#

forks are not recommended as they make you lose access to future updates

#

if you insist on doing this, consider giving yourself the newsletter role in this server, to make sure to be notified of future major changes in #📣・announcements

unreal cosmos
grand helm
#

editing this value directly will have side effects and probably break the admin

#

I'm not sure right now what exactly needs to be modified

#

at line 3056:```diff
f.addCommand({ "announce", "an", "sm" }, { "Shouts an announcement.", "I'm banning everyone." }, 3, { "string" }, function(pl, args)
-f.filteredMsg(pl, { ScriptName, "Announcement", args[1] })
+f.filteredMsg(pl, { "My custom label", "Announcement", args[1] })
end)

#

Custom announcement label

unreal cosmos
#

I'll check it out.

#

Didn't really work.

#

Or I am just dumb.

grand helm
#

any syntax or runtime errors?

unreal cosmos
#

Nope.

grand helm
#

only have one of the two lines

#

in my example one is red and the other is green, this shows what to remove

unreal cosmos
#

I'll try that.

#

Didn't work.

grand helm
#

is that in your own game

#

what are you asking exactly

unreal cosmos
unreal cosmos
#

I want to change that label to PRFA Admin.

grand helm
#

yea that means you're already using a fork...

#

you probably weren't doing the require step

#

or maybe there's some conflict

#

anyway, find the script that already exists which writes that