Use building archetypes for instructions. Requires arch r21820.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@21826 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2021-01-19 19:06:41 +00:00
parent 440434e4e2
commit b9c556ad21
2 changed files with 9 additions and 97 deletions

View File

@ -1,4 +1,5 @@
2020-01-19 Nicolas Weeger
* brest/shops/buildshop,
* navar_city/shops/buildshop,
* pup_land/lone_town/shops/buildshop,
* scorn/shops/buildshop,

View File

@ -14,7 +14,7 @@ enter_x 6
enter_y 24
msg
Created: 2005-11-05 Gene Alexander
Modified: 2020-03-21 Kevin Zheng
Modified: 2021-01-19 Nicolas Weeger
endmsg
end
arch flagstone
@ -631,79 +631,33 @@ arch tile_floor
x 4
y 20
end
arch book_read
name Signs and talking books
msg
When making signs and talking (or listening) books, you need to place a book or scroll with the text you want on the square you're building on just like a marking rune.
With the talking/listening books, they will take the name and picture of the book used to create them as well.
For the talking and listening books, you also need to connect them with a marking rune just like gates buttons and levers, which in the case of the talking books, makes the book say it's message when activated, and in the case of listening books, it causes saying the phrase that the book looks for to act like pulling a lever.
For the listening books, the message must be in this format:
@match blah
Click.
Which will make it activate when somebody within two squares says "blah", and will additionally say "Click." upon activation.
endmsg
arch guide_building_signs
x 4
y 20
material 0
no_pick 1
identified 1
end
arch tile_floor
x 4
y 21
end
arch book_read
name Building restrictions
msg
To build on a spot, all items on this spot must be 'buildable'.
Buildable items will display 'this is a buildable item' when examined.
There are several exceptions though. In all cases you can build on marking runes as they are used for making gates and buttons work together. Also you can build signs and talking books on of books and or scrolls, because they are needed for specifying the message. Also, buttons, levers and pedestals can be built underneath gates. Don't worry, you should have some clear messages on why you can't build.
endmsg
arch guide_building_restrictions
x 4
y 21
material 0
no_pick 1
identified 1
end
arch tile_floor
x 4
y 22
end
arch book_read
name Building other items
msg
All items not requiring any special handling are built simply by marking the appropriate material and firing the builder.
Note that, to avoid any issue, those items can not be picked up.
Note also that you can build an item on another.
endmsg
arch guide_building_items
x 4
y 22
material 0
no_pick 1
identified 1
end
arch tile_floor
x 4
y 23
end
arch book_read
name Basic building instructions
msg
To build your own home, you can use different items:
* generic builder: this tool lets you build anything. You need one to build.
* generic destroyer: this tool lets you destroy a built item. This will remove any built item, except floors and walls.
* materials: you need those to build items. For instance, a 'Wood floor material' enables you to build a woodfloor.
To build an item:
* apply the builder
* mark the material of the item you want to build
* fire the builder in the desired direction
Of course, the material is used when you build, so you need to buy quite a few.
endmsg
arch guide_building_basic
x 4
y 23
material 0
no_pick 1
identified 1
end
arch tile_floor
x 4
@ -828,68 +782,25 @@ arch tile_floor
x 5
y 20
end
arch book_read
name Building floor and walls
msg
Building enables you to put walls and floors where you want.
Building a floor lets you remove walls. This is the only way to remove them.
You can change an existing floor by building another on top. Same goes for walls.
All created floors are magic, and will preserve items you put on them.
You can add a window in some walls. To remove the window, build a new wall.
endmsg
arch guide_building_floor
x 5
y 20
material 0
no_pick 1
identified 1
end
arch tile_floor
x 5
y 21
end
arch book_read
name Building gates and buttons/pedestals
msg
Some items, like gates, require buttons, pedestals, ..., something to be opened and closed.
To build a gate with its associated button:
* put a marking rune at the spot where you wish to build the door. The text can be whatever you want, make sure to remember it.
* build the gate on this spot
* put a marking rune at the spot where you with to put the button. Use the same text as for the door.
* build the button
Your button will now activate the gate when you apply it.
Note that you can link together as many gates, buttons, pedestals, as you want.
As long as you use the same text on the marking rune, they will all work together.
To build gates activated by other buttons, just use another text.
Normally all gates with a single marking rune text are either all up or all down at a given time, however if you want one open while another is closed, make use of inverted gates.
Also, it is possible to make buttons, levers, and pedestals underneath gates, however it requires things to be made in a specific order.
* make 2 marking runes on the square that you want to build the button and gate on
* build the gate first
* then build the button underneath it
This is useful for making a gate avoid crushing people underneath it. Also, you can use this same technique with inverted gates in order to make a square that pushes objects placed on it off of it.
endmsg
arch guide_building_gates
x 5
y 21
material 0
no_pick 1
identified 1
end
arch tile_floor
x 5
y 22
end
arch book_read
name Removing items
msg
To remove built items, you need a 'generic destroyer'.
Simply apply it, and fire in the desired direction. It will remove the first built item from the location.
Warning: a destroyer will remove items starting from the lowest order on the spot. Basically, this means the first removed item will be a pedestal (underground), then items on floor.
Note that the destroyer will not remove walls or floors.
endmsg
arch guide_building_removing_items
x 5
y 22
material 0
no_pick 1
identified 1
end
arch tile_floor
x 5