Date: 2014/03/03 07:22:23 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# +--------
# | Word replacer
"Word Replacer":
type: world
events:
on player chats:
# Check the place chat if in the groups specified, then determine the
# replaced text.
- if <player.in_group[Members]> || <player.in_group[Helpers]>
queue clear
else determine '<proc[Modify Words].context[<context.message>]>'
"Modify Words":
type: procedure
definitions: words
script:
- define replacement %words%
- foreach '<s@replacement texts.constant[replace]>' {
- define word_to_replace <def[value].before[/]>
- define replace_with <def[value].after[/]>
- define replacement <def[replacement].replace[%word_to_replace%].with[%replace_with%]>
}
# Send back the final replacement
- determine %replacement%
# Define the words you wish to replace in the 'replace' node below.
# Use the format 'word to replace/word to replace with', as seen in
# the following example.
replacement texts:
type: task
replace:
- puttana/BIP
- troia/BIP
- cazzo/BIP
- figa/BIP
- vagina/BIP
- gay/BIP
- frocio/BIP
- lesbo/BIP
- lesbica/BIP
- dio/BIP
- madonna/BIP
- gesu/BIP