Architectopedia - Advanced architect handbook
An advanced handbook for every architect who wants to polish his and her skills. It contains all the information you need about _MyScript variables to make your life easier (But my was not easy as I had to write it beforehand).
This idea came to me when TFMurphy told me about how MoveTo works. I have decided to make this Architectopedia. This is really big and detailed. I tried not to make mistakes. If you find some typos, grammar errors or other mistakes, I will be pleased to fix them, just tell me what is wrong. If you know of functionality of some other commands in game, I'll gladly listen.
Version updated to DROD RPG 1.1:
First of all thanks to Mrimer for fixing all these bugs which I have managed to spot. Some others were found and I will post them on Bug Report board immediately. This time I wasn't checking everything (It would be too time consuming) but I tested all things which previously failed to work fine. At the bottom there is a change log, so take a look to see what changed.
So let us begin:
(1) - If anywhere you see word "
Buzz"
or "
Buzzer"
, keep yourself away from that thing. Don't build that thing nor create such entity - or you will make yourself unhappy.
(2) - If I say CRASHES DROD! KEEP AWAY FROM IT! I mean it. Honestly speaking, it took me around 40 crashes to realize that I have spotted them all.
(3) - When being asked for Width and Height of rectangle, remember that length of 1 tile is represented by number 0. so a 1x1 square will have W=0 H=0, 5x8 ->
W=4 H=7
(4) - When there is a number in parenthesis, it means that putting any other number is meaningless
(5) - Room size is 16x16. Top-left tile is 0x0, bottom right is 15x15
(6) - Things marked with (?) are potentially buggy, or not yet checked fully.
(7) - Flags - when something is said to be Flags you should have a list similar to this:
0 - Coordinates
1 - Player
2 - NPC
4 - Monster
8 - Self
16 - Stalwart
So if you set it to 1, the player will be selected. If to 2 NPC. 4 Monster and so on. IF, however, you wanted to select MORE than one at once, sum the values. So to select Player and mosnter 1+4=5. Stalwart+Self+NPC=16+8+2=26.
(8) At the bottom there is a list of other useful information about scripting I have found.
Activate Item At:
_MyScriptX - X position of item to activate (0-15)
_MyScriptY - Y position of item to activate (0-15)
Ambient Sound At:
Remember that the closer you are to the sound, the louder it is and vice versa
_MyScriptX - X position of sound to play (0-15)
_MyScriptY - Y position of sound to play (0-15)
Appear At:
_MyScriptX - X position to appear to (0-15)
_MyScriptY - Y position to appear to (0-15)
Build:
It was really tedious, so it is quite probable there are typos and small mistakes. See footnotes for important informations.
_MyScriptX - X position of Top-Left corner to build (0-15)
_MyScriptY - Y position of Top-Left corner to build (0-15)
_MyScriptW - Width of the build range(0-15 - if negative nothing is built)
_MyScriptH - Height of the build range(0-15 - if negative nothing is built)
_MyScriptF - What to build:
00-Clear Items, bonuses, potions, keys, Briar(Both), Map, Mirror, fuses, bombs
01-Floor (All first category stuff excepting Platforms)
02-Pit (Items, enemies, tars, player, briars, scrolls, bombs fall down, orbs)
03-Stairs Down (End of Hold) (All first category stuff excepting Platforms)
04-Wall (All first category stuff excepting Platforms)
05-Broken Wall (All first category stuff excepting Platforms)
06-Blue Gate (All first category stuff excepting Platforms)
07-Green Gate (All first category stuff excepting Platforms)
08-Red Gate (All first category stuff excepting Platforms)
09-Yellow Gate (All first category stuff excepting Platforms)
10-Open Yellow Gate (All first category stuff excepting Platforms)
11-Trapdoor over pit (All first category stuff excepting Platforms)
12-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
13-Arrow N (Removes ortho-squares and other arrows)
14-Arrow NE (Removes ortho-squares and other arrows)
15-Arrow E (Removes ortho-squares and other arrows)
16-Arrow SE (Removes ortho-squares and other arrows)
17-Arrow S (Removes ortho-squares and other arrows)
18-Arrow SW (Removes ortho-squares and other arrows)
19-Arrow W (Removes ortho-squares and other arrows)
20-Arrow NW (Removes ortho-squares and other arrows)
21-Medium Health (Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment)
22-Large Health (The same)
23-Empty Scrolls (The same)
24-Orbs Give buss when placed over pressure plates(The Same)
25-34 - Nothing (Does nothing, doesn't seem to lead to errors of any kind)
35-Tar (Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment) (Can be created on 1x1 square in which case is indestructible by sword)
36-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
37-Tar (Black) Gate (All first category stuff excepting Platforms)
38-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
39-Briar Root (removes Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment)
40-Briar (The same) (Unconnected Briar)
41-Red briar (The same) ("Connected Briar")
42-Clears Arrows and Ortho squares
43-Bomb (removes Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment)
44-Fuse (The same)
45-Ortho-Square (Clears Arrows)
46-Token - All eqipment (and keys) turns into Tokens, based on their position on List. If exceeds - Buzz. (Use with caution!!!) (removes Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment) (Use with caution!!!)
47-Tunnel Up (All first category stuff excepting Platforms) (removes other tunnels)
48-Tunnel Down (All first category stuff excepting Platforms) (removes other tunnels)
49-Mirrors (removes Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment)
50-Power Gem (The Same)
51-Shield Gem (The Same)
52-Platform over water Looks like water, but when you try to move it gives buzz! (All first category but platforms)
53-Platform over pit Looks like pit, but when you try to move it gives buzz! (All first category but platforms)
54-Floor Mosaic (All first category but platforms)
55-Road (The Same)
56-Grass (The Same)
57-Dirt Floor (The Same)
58-Alternate Floor (The Same)
59-Greckle Gate (The Same)
60-Mud (removes Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment) (Can be created on 1x1 square in which case is destructible)
61-Stairs Up (End of hold) (All first category but platforms)
62-Secret Wall (The Same)
63-Tunnel Right (All first category but platforms) (removes other tunnels)
64-Tunnel Left (The Same)
65-Custom Floor (All first category but platforms)
66-Wall Hard Filler (The same)
67-Water (equipment, bonuses, orbs, Tars, enemies, bombs mirrors, scrolls, map, drown) (All first category stuff excepting Platforms) (Keys are left to collect)
68-Open Green Gate (All first category but platforms)
69-Open Blue Gate (The Same)
70-Open Red Gate (The Same)
71-Open Tar (Black) Gate (The same)
72-Trapdoor over Water (The same)
73-Oremites (The Same)
74-Light Poles (Keys, items, equipment, bonuses, briars, mirror, bomb, fuse, map) (Inactive unless you Undo, then give weakes light)
75-Hot Tiles (All first category stuff excepting Platforms)
76-Gel (removes Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment) (Can be created on 1x1 square in which case is indestructible)
77-Level Map (Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment)
78-Pressure Plate (Unpressable) (All first category stuff excepting Platforms)
79-Bridge Normal (The Same) (Droppable, drops by itself if surrounded by pits)
80-Bridge Horizontal (The Same) (Droppable, drops by itself if surrounded by pits)
81-Bridge Vertical (The Same) (Droppable, drops by itself if surrounded by pits)
82-Image Pit (Items, enemies, tars, player, briars, scrolls, bombs fall down, orbs)
83-Image Wall (All first category stuff excepting Platforms)
84-Removes Ortho and Arrows (Works fine) AND removes PLATFORMS GRAPHICS and makes them behave like in 52 & 53 (!)
85-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
86-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
87-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
88-Open Greckle Gate (All first category stuff excepting Platforms)
89-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
90-Small health (Briars, fuses, keys, items, bombs. map, mirror, bonuses, equipment)
91-Nothing (Does nothing, doesn't seem to lead to errors of any kind)
Negative Values:
All listed here items remove - keys, equipment, briars, maps, bomb, items, bonuses and mirrors.
-1 - Yellow key
-2 - Green Key
-3 - Blue Key
-4 - Skeleton Key
-5 - Bomb explosion (Kills ^^)
-6 - Wooden Blade
-7 - Small Sword
-8 - Goblin Bitter
-9 - Long Sword
-10 -Hook
-11 - Really Big Sword
-12 - Lucky Blade
-13 -Wyrm Smiter
-14 - Briar Hacker
-15 - Weapon Slot
-16 - Wooden Shield
-17 - Bronze Shield
-18 - Steel Shield
-19 - Knight Shield
-20 - Oremite Shield
-21 - Shield Slot
-22 - Grappling Hook
-23 - Flippers
-24 - Invisibility Potion
-25 - Speed Potion
-26 - Hand Bomb
-27 - Pick Axe
-28 - Warp Token
-29 - Portable Orb
-30 - Lucky Greckle
-31 - Wall Walking
-32 - VIP Card
-33 - Accessory Slot
Note! - When there is (?) next to item, or when there is Buzz, it means that in some non understandable for us way, that item can either be harmful for hold (The quotation mark) or almost for sure can be harmful (The buzz). Heed my suggestion, and don't use these!
Note! - When there is list of items in Parenthesis, it means that these object will be deleted when building upon them. So:
54-Floor Mosaic (All first category but platforms)
Means that when building 54, all walls, pits, water, hot tiles, oremites, etc, etc, except platforms will be removed to make space for Mosaic Floor.
Cut Scene:
_MyScriptX - Time per move (in Millisecs) (0-Infinity)
Face Direction:
_MyScriptX - Direction to face:
0-NW
1-N
2-NE
3-W
4-No Direction - Kills sworder characters (o_O)
5-E
6-SW
7-S
8-SE
9-Rotate CW
10-Rotate CCW
Game Effect:
_MyScriptX - X position of effect (0-15)
_MyScriptY - Y position of effect (0-15)
_MyScriptW - Direction of effect:
0-NW
1-N
2-NE
3-W
4-Center
5-E
6-SW
7-S
8-SE
9-Rotate CW
10-Rotate CCW
_MyScriptH - The effect:
D/C - Means that direction matters/doesn't matter
S/M - Means that it has sound/is mute
00 DS - Blood Splatter
01 DS - Mud Splatter
02 DS - Tar Splatter
03 DS - Gel Splatter
04 DS - Seep Splatter
05 DS - Golem Splatter (Broken wall destroy)
06 CS - Slayer Splatter
07 DS - Debris
08 DS - Spark (Fuse)
09 CS - Explosion
10 CS - Splash
11 CS - Steam
12 CS - Jitter (like when starting level)
13 CM - Vermin
14 CS - Bolt
15 CS - Monster Bite (only sound)
16 CS - Parry
17 - None
18 CS - Strong Hit
19 CS - Equip (Only Sound)
_MyScriptF - Sound 0=Off 1=On
Generate Entity:
_MyScriptX - X position of Entity (0-15)
_MyScriptY - Y position of Entity (0-15)
_MyScriptW - Entity orientation:
0-NW
1-N
2-NE
3-W
4-No Direction - Buzz when character has no "no direction" graphic
5-E
6-SW
7-S
8-SE
9-Rotate CW
10-Rotate CCW
_MyScriptH - Entity Type:
00-Roach
01-Roach Queen
02-Roach Egg
03-Goblin
04-Neather
05-Wraithwing
06-Evil Eye
07-Nothing
08-Tar Mother left eye
09-Tar Baby
10-Brain
11-Mimic
12-Spider
13-Nothing
14-Nothing
15-Rock Golem
16-Water Skipper
17-Antlion
18-Aumtlich
19-Swordsman
20-Soulless
21-Wubba
22-Seep
23-Pirate
24-'Neather
25-Slayer
26-Fegundo
27-Nothing
28-Red Guard
29-Nothing
30-Mud Mother Left Eye
31-Tar Baby
32-Gel Mother Left Eye
33-Gel Baby
34-Gray Man
35-Top Left corner of Rock Giant (Works fine but looks certainly odd
36-Mad Eye
37-Goblin King
This can also be used to create Custom Characters. Just type their ID (for example 20000).
Move:
_MyScriptX - Amount of horizontal steps character should move (-15 - 15)
_MyScriptY - Amount of vertical steps character should move (-15 - 15)
_MyScriptW - Forbid Turning 0=Off, 1=On
_MyScriptH - Single Step 0=Off, 1=On
MoveTo:
_MyScriptX - X position where to move (0-15) Check Note.
_MyScriptY - Y position where to move (0-15) Check Note.
_MyScriptW - Forbid Turning 0=Off, 1=On
_MyScriptH - Single Step 0=Off, 1=On
_MyScriptF - Move towards (Flags):
0 - Coordinates
1 - Player
2 - NPC
4 - Monster
8 - Self
16 - Stalwart
Note! - _MyScriptX & _MyScriptY are only useful when either _MyScriptF is set to 0, or when in "
Move towards to"
no character is selected (Use Ctrl+LMB to uncheck)
Thanks to TFMurphy for info about this whole one!
Speech:
_MyScriptX - X position of text (0-15)
_MyScriptY - Y position of text (0-15)
It only works when speaker is set to "Custom"
Wait:
_MyScriptX - Affects the amount of turns to wait (0-Infinity)
Wait for Door to:
_MyScriptX - Door X position (0-15)
_MyScriptY - Door Y position (0-15)
_MyScriptF - For door to: 0=Close, 1=Open
Wait for Entity:
_MyScriptX - Top Left corner X position (0-15)
_MyScriptY - Top Left cornet Y position (0-15)
_MyScriptW - Width of Check rectangle (0-15)
_MyScriptH - Height of Check rectangle (0-15)
_MyScriptF - Entity(Flags):
1 - Player
2 - NPC (?)
4 - Monster
8 - Self
16 - Stalwart (?)
Wait for open move:
_MyScriptX - Direction:
0-NW
1-N
2-NE
3-W
4-Always is true
5-E
6-SW
7-S
8-SE
Wait for player to face:
_MyScriptX - Direction:
0-NW
1-N
2-NE
3-W
4-Always is false
5-E
6-SW
7-S
8-SE
9-When player turns CW
10-When player turns CCW
Wait for player to move:
_MyScriptX - Direction:
0-NW
1-N
2-NE
3-W
4-Always is false
5-E
6-SW
7-S
8-SE
Wait for turn:
_MyScriptX - Turn number
Wait for Entity:
_MyScriptX - Top Left corner X position (0-15)
_MyScriptY - Top Left cornet Y position (0-15)
_MyScriptW - Width of Check rectangle (0-15)
_MyScriptH - Height of Check rectangle (0-15)
_MyScriptF - Entity(Flags):
1 - Player
2 - NPC (?)
4 - Monster
8 - Self
16 - Stalwart (?)
...
Phew. After doing it, I feel like I gave something back to the community, and to DROD overall, for never having a chance to buy DROD
.
Scripting Quirks:
-Global character script is activated AFTER characters placed in the room scripts.
-Variables are rounded down when divided
-2147483647 is the biggest positive number possible (Thanks to
Sillyman)
Version 1.11:
-Added one more scripting quirk
Version 1.10:
-Full compatibility check with version 1.1 for all previously not working/crashing/buzzing functions!
-Updates in Build
-Updates in Generate Entity
-Updates in Game Effect
Version 1.01:
-Fixed Generate Entity - some Enemy IDs were wrong
Version 1.00:
-Released
____________________________
My website
[Last edited by skell at 04-18-2011 11:54 PM]