anti-swearing script for cmud

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Post Reply
Orino
Posts: 258
Joined: Sun Mar 22, 2015 4:41 am

anti-swearing script for cmud

Post by Orino » Sat Apr 16, 2016 7:35 am

Can someone make an anti-swearing script for narrates on DS?

My son started to watch me play. He is 5 years old and can read.

I know some of the trollocs/fades cannot spell swear words properly, so that might be a problem.

I would love it if the words would show up as ****.

Let me know if someone can help.

Thanks!

Orino/Mike

Perdue
Posts: 15
Joined: Fri Feb 20, 2015 11:46 am

Re: anti-swearing script for cmud

Post by Perdue » Sat Apr 16, 2016 10:55 am

Here you go:

Code: Select all

#Class SwearFilter
#var swearwords {word1|word2|word3}
#ONINPUT {\b(?:@swearwords)(?:ed|ing|s)?\b} {#SUB {****}} "" {regex}
#Class 0
Just replace the words in the swearwords variable with the words you want to censor. It will account for the different actions so you don't have to put in "jump, jumped, jumps, jumping" just "jump" will suffice.

It just replaces each word with 4 asterisks. You can change that to whatever you like.

Perdue

Orino
Posts: 258
Joined: Sun Mar 22, 2015 4:41 am

Re: anti-swearing script for cmud

Post by Orino » Sat Apr 16, 2016 11:50 am

Thanks!

Jomin
Posts: 160
Joined: Thu Feb 19, 2015 3:54 pm
Location: White Tower Libraries or Deepest Wiltshire, UK

Re: anti-swearing script for cmud

Post by Jomin » Sun Apr 17, 2016 9:32 pm

Trouble is anyone reading this is just going to be tempted to get creative when sending obsenitives @ U.

Which, of course, according to the sort of behaviour that House Guest rules imply, they ought to be anyhow! E.g.: "You were as much use in that last fight as a dried mud face-pack on the back-side of a Goat-horned Trolloc!" ;)

Post Reply