×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Useful Information
Useful Information
Ediz
« Censeur »
1381430760000
    • Ediz#0095
    • Profil
    • Derniers messages
    • Tribu
#1
  0
This thread contains useful information when developing a module, including different enums and IDs, colour codes, etc.

Colour Tags
Here is a list of custom colour tags used by Transformice. They don't have to be ended like HTML tags do.


#2F7FCC <BV> Map Crew color o forums.
#CB546B <R> Errors.
#6C77C1 <BL> Default system messages.
#BABD2F <J> Help & other information.
#C2C2DA <N> Regular chat.
#606090 <G> Offline friends.
#009D9D <V> Chat names.
#2ECF73 <VP> Tutorial keywords.
#C53DFF <VI> No usage found.
#ED67EA <ROSE> Moderation and server messages.
#98E2EB <CH> Blue shaman text.
#A4CF9E <T> Tribe chat.


Emote IDs
This is a list of emotes and their corresponding enums. Bare in mind that the tfm.enum.emote table has a list of all emote names and enums.

0 - Dance
1 - Laugh
2 - Cry
3 - Kiss
4 - Rage
5 - Clap
6 - Sleep
7 - Facepaw
8 - Sit
9 - Confetti


Shaman Object IDs
While tfm.enum.shamanObject is a list of shaman objects, it doesn't list every object the Module API can spawn in. Here is a list of all shaman objects that can be spawned in with tfm.exec.addShamanObject.

0 - Arrow
1 - Small Box
2 - Large Box
3 - Small Plank
4 - Large Plank
6 - Ball
7 - Trampoline
10 - Anvil
17 - Cannon (Up)
18 - Cannon (Down)
19 - Cannon (Right)
20 - Cannon (Left)
23 - Bomb
24 - Spirit
26 - Blue Portal
27 - Orange Portal
28 - Balloon
32 - Rune
34 - Snowball
35 - Valentine's Arrow
39 - Apple
40 - Sheep
54 - Frozen Mouse


Key Codes
This is a list of characters that Lua supports, and their corresponding key codes. These are the numbers that the second argument of eventKeyboard returns and bindKeyboard requires.

8 - Backspace
9 - Tab
13 - Enter
16 - Shift
17 - Control
18 - Alt
19 - Pause
20 - Caps Lock
27 - Escape
32 - Spacebar
33 - Page Up
34 - Page Down
35 - End
36 - Home
37 - Left Arrow
38 - Up Arrow
39 - Right Arrow
40 - Down Arrow
45 - Insert
46 - Delete
48 - 0
49 - 1
50 - 2
51 - 3
52 - 4
53 - 5
54 - 6
55 - 7
56 - 8
57 - 9
65 - A
66 - B
67 - C
68 - D
69 - E
70 - F
71 - G
72 - H
73 - I
74 - K
75 - J
76 - L
77 - M
78 - N
79 - O
80 - P
81 - Q
82 - R
83 - S
84 - T
85 - U
86 - V
87 - W
88 - X
89 - Y
90 - Z
91 - Windows (Left)
92 - Windows (Right)
93 - Application Key
97 - 1 (Numbpad)
98 - 2 (Numbpad)
99 - 3 (Numbpad)
100 - 4 (Numbpad)
101 - 5 (Numbpad)
102 - 6 (Numbpad)
103 - 7 (Numbpad)
104 - 8 (Numbpad)
105 - 9 (Numbpad)
106 - * Asterix (Numbpad)
107 - + Plus (Numbpad)
109 - - Minus (Numbpad)
110 - \ Forward Slash (Numbpad)
112 - F1
113 - F2
114 - F3
115 - F4
116 - F5
117 - F6
118 - F7
119 - F8
120 - F9
121 - F10
122 - F11
123 - F12
144 - Numlock
145 - Scroll Lock
186 - ; Semicolon
187 - = Equals
188 - , Comma
189 - - Hyphen
190 - . Period
191 - / Forward Slash
192 - ` Apostrophe
219 - [ Left Square Bracket
220 - \ Backslash
221 - ] Right Square Bracket


Ground IDs
Here is a list of grounds and their corresponding IDs that a map's XML uses.

1 - Wood
2 - Ice
3 - Trampoline
4 - Lava
5 - Chocolate
6 - Earth
7 - Grass
8 - Sand
9 - Cloud
10 - Water
11 - Stone
12 - Snow
13 - Rectangle
14 - Circle


Decoration IDs
This is a list of decoration IDs for player-made maps from the map editor.

0 - Bush
1 - Tree
2 - Fern
3 - Blue Flower
4 - Sign
5 - Grass
6 - Coconut Tree
7 - Umbrella
8 - Sand Castle
9 - Shovel
10 - Sand Bucket
11 - Red Flower
12 - Thorns
13 - Fence
14 - Window
15 - Sofa
16 - Chair
17 - Table 1
18 - Vase of Flowers 1
19 - Sofa with 1 Place
20 - Vase of Flowers 2
21 - Roast Chicken
22 - Bookcase
23 - Poster
24 - Bed
25 - Radio
26 - Teddy
27 - Abajour
28 - Refrigerator
29 - Wardrobes
30 - TV with Stand
31 - Soda
32 - Vase of Flowers 3
33 - Nightstand
34 - Fund 1
35 - range of Halloween 1
36 - range of Halloween 2
37 - Broom
38 - Skeleton
39 - Halloween Poster
40 - Balloons Halloween
41 - Web with Spider
42 - Autumn Tree
43 - Bats
44 - Torch
45 - Fund Cemetery
46 - Torch 2
47 - About Grades
48 - Pumpkin 1
49 - Pumpkin 2
50 - Snowmouse
51 - Snowy Tree
52 - Cookies with Milk
53 - Garland
54 - Half Hanging
55 - Candle 1
56 - Band Christmas
57 - Christmas Tree
58 - Ice Stalactites
59 - Mistletoe
60 - Ball Christmas Tree
61 - Lights Natalinas
62 - Present
63 - Gifts
64 - Santa
65 - Loop
66 - Valentine's Umbrella
67 - Valentine's Chair
68 - Valentine's Table
69 - Valentine's Plate
70 - Valentine's Day Gift
71 - Candle 2
72 - Vase of Flowers 4
73 - Flower in Vase
74 - Ribbons with Hearts
75 - Balloon Heart
76 - Valentine's Window
77 - Heart Pendant
78 - Stones with Algae
79 - Algae 1
80 - Chest
81 - Starfish
82 - Shell
83 - Stones
84 - Stones with Algae 2
85 - Coral 1
86 - Coral 2
87 - Algae 2
88 - Broken Vase
89 - Big Screen
90 - Small Screen
91 - Alchemy Pot
92 - Objects of Alchemy 1
93 - Objects of Alchemy 2
94 - Bookshelf 2
95 - Piano
96 - Fireplace
97 - Candelebra
98 - Coffin
99 - Paper Holder
100 - Bottle with Substance 1
101 - Bottle with Substance 2
102 - Buff
103 - Barrel
104 - Table 2
105 - Chair 2
106 - Skull Mouse
107 - Cobweb 1
108 - Cobweb 2
109 - Cobweb 3
110 - Cobweb 4
111 - Cobweb 5
112 - Vampire Portrait
113 - Support with Fruits
114 - Mirror
115 - Tombstone of Elise
116 - Crucifix
117 - Background 2
118 - RIP Tombstone


Clothing IDs
This is a list of all clothing and outfit IDs that tfm.get.room.playerList[name].look returns. Note that .look doesn't return the ID of a fur colour, if the player is wearing one.

Furs
1 - Default Fur
2 - Cow Fur
3 - Siamese Cat Fur
4 - Rabbit Fur
5 - Cow Fur v2
6 - White-Brown Fur
7 - Black-White Cat Fur
8 - Tiger Fur
9 - Fox Fur
10 - Skeleton Costume
11 - Black-Grey Fur
12 - Black-Brown Fur
13 - Racoon Fur
14 - Snow Fur
15 - Red Panda
16 - Bunny Fur
17 - Zebra Fur
18 - Panda Fur
19 - Moon Fur
20 - Sun Fur
21 - Leopard Fur

Head
0 - Nothing
1 - Helicopter Hat
2 - Straw Hat
3 - Helmet
4 - Top Hat
5 - Sun Hat
6 - Fedora
7 - Soldier Helmet
8 - Miner Hat
9 - General's Cap
10 - Beret
11 - Ninja Headband
12 - Horns
13 - Halo
14 - Viking Hat
15 - Bandit Mask
16 - Pirate Hat
17 - Witch Hat
18 - Riding Helmet
19 - Nurse Cap
20 - Police Cap
21 - Santa Hat
22 - Chef's Hat
23 - Bunny Ears
24 - Shower Cap
25 - Cow Boy Hat
26 - Lemon Hat
27 - Mandarin Hat
28 - Palm Hairstyle
29 - Uncle Sam Hat
30 - Marge Simpson Hair
31 - Mario Hat
32 - Super Sayen Hat
33 - Party Hat
34 - Asterix Hat
35 - Crown
36 - Dreadlocks
37 - Afro
38 - Pharaoh Hat
39 - Pumpkin Head
40 - Skull Mask
41 - Antlers
42 - Snowman Head
43 - Blonde Hair
44 - Campaign Hat
45 - Quiff Hair
46 - Coolie Hat
47 - Indian Headress
48 - Panama Hat
49 - Jester Hat
50 - Deadmau5 Hat
51 - Pilot Hat
52 - Megaman Hat
53 - Viewtiful Joe Hat
54 - Eggshell
55 - Cocked Hat
56 - Fish Hat
57 - Cat Hat
58 - Fish Bowl
59 - Bow
60 - Egg Basket
61 - Orange Hair Hat
62 - Luffy Hat
63 - Sonic Hair
64 - Turkish Hat
65 - Brunette Hair
66 - Link Hat
67 - Shark Hat
68 - Rainbow Dash's Mane
69 - Twillight Sparkle's Mane
70 - AppleJack's Mane
71 - Pinkie Pie's Mane
72 - Rarity's Mane
73 - Fluttershy's Mane
74 - Ushanka
75 - Coonskin Hat
76 - Paper Bag
77 - Sombrero
78 - Ash's Hat
79 - Sleep Cap
80 - Knife In Head
81 - Ghost Sheet
82 - Bat Wings
83 - Turban
84 - Christmas Tree
85 - Stocking
86 - Krissim's Cockatrice Head
87 - Banana Leaf Headdress
88 - Straw Panache
89 - Fisherman Hat
90 - Fishing Rod
91 - Shell
92 - Captain Cap
93 - Sailor Cap
94 - Chicken
95 - Cake Hat
96 - Shadow Hat
97 - Ice Hat
98 - Lion Hat
99 - Tiara
100 - Break
101 - Hokage Hat
102 - Spartan Helmet
103 - Candle Hat
104 - Ice Cube
105 - Frog Beanie
106 - Chick Hat
107 - Panda Beanie
108 - Graduate Hat
109 - Coconut Shell
110 - Underpants

Eyes
0 - Nothing
1 - Sunglasses
2 - Heart Glasses
3 - Evil Sunglasses
4 - Monocle
5 - Eyepatch
6 - Tuba
7 - 3D Glasses
8 - Glasses
9 - Make Up
10 - Shutter Glasses
11 - Cyclops Glasses
12 - Kitsune Mask
13 - Disguise
14 - Carnival Mask
15 - Creeper Mask
16 - Japanese Headband
17 - Bandages
18 - Eyes Crazy

Mouth
0 - Nothing
1 - Moustache
2 - Straw
3 - Bowtie
4 - Pipe
5 - Rose
6 - Green Lightsaber
7 - Red Lightsaber
8 - Knife
9 - Gas Mask
10 - Clover
11 - Fish Bones
12 - Nipple
13 - Lollipop
14 - Surgeon Mask
15 - Pumpkin Basket
16 - Red Nose
17 - Buck Teeth
18 - Minecraft Pickaxe
19 - Strawberry
20 - Paint Brush
21 - Ice Lolly
22 - Bone
23 - Donut
24 - Vampire Teeth
25 - Chocolate
26 - Gingerbread Cookie
27 - Chocolate Box
28 - Bouquet
29 - Carrot
30 - Turkish Cake
31 - Bamboo
32 - Japanese Fan
33 - Diploma
34 - Sardine

Ear
0 - Nothing
1 - Bow
2 - Spider Earring
3 - Bauble Earring
4 - Flower in Hair
5 - Headphones
6 - Heart Earring
7 - Poisson Earring
8 - Star Earring
9 - Cheese Earring
10 - Lenneth Helm
11 - Earmuffs
12 - Candy Cane Earring
13 - Rose Headband
14 - Anglish Bunny Headband
15 - Holldine Mask
16 - Fish Earring
17 - Spy Glass
18 - Hoop Earrings
19 - Rin Kagamine Hairband
20 - Frankstein Screws
21 - Arrow in the Head
22 - Skull Earring
23 - Frozen Ear
24 - Bunny Earring
25 - Frangipani

Neck
0 - Nothing
1 - Tri Coloured Scarf
2 - Bandana
3 - Beard
4 - Flowers
5 - Tie
6 - Green and Grey Scarf
7 - Bell Necklace
8 - Barrel Necklace
9 - Halloween Scarf
10 - Red Wreath
11 - Bowtie
12 - Umbrella
13 - Camera
14 - Striped Tie
15 - Medal
16 - Evil Eye Amulet

Hair
0 - Nothing
1 - Punk Hairstyle
2 - Windswept Hairstyle
3 - Normal Male Hair
4 - Fringe
5 - Chanel
6 - Applebloom's Mane
7 - Scootaloox's Mane
8 - Sweetiebell's Mane
9 - Hatsune Miku's Hairstyle
10 - Rin Kagamine's Hairstyle
13 - Golden Curls
14 - Forelock

Tail
0 - Nothing
1 - Diamond
2 - Star
3 - Bow
4 - Heart
5 - Easter Egg
6 - Sun
7 - Moon


Credits goes to everyone in the Lua team and a few helpers who has contributed on finding the enums of these stuff.

Dernière modification le 1409513220000
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Useful Information
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27