NPC/Shopkeeper
verb
Purchase_From_Store()
set category = "Shop"
set src = view(4)
var/shop = {"
<html>
<head>
<title>General Shop</title>
<STYLE>
BODY {background:#000000;color:white;}
TABLE {background: black;color=white; size=1;}
.:link {text-decoration: none; color: silver;}
.:visited {text-decoration: none; color: silver;}
.:hover {text-decoration: underline; color: white;}
</STYLE>
</head>
<body bgcolor=black>
<center>
<u><b>Objects</b></u>
<table border=1>
<tr>
<td>
<a href=?Simple>Simple Athame</a>
</td>
<td>
25
</td>
</tr>
<tr>
<td>
<a href=?Paper>Paper</a>
</td>
<td>
1
</td>
</tr>
<tr>
<td>
<a href=?Candle>Candle</a>
</td>
<td>
5
</td>
</tr>
<tr>
<td>
<a href=?Book>Book</a>
</td>
<td>
15
</td>
</tr>
<tr>
<td>
<a href=?herb>Herbs</a>
</td>
<td>
1
</td>
</tr>
<tr>
<td>
<a href=?bottle>Empty Bottle</a>
</td>
<td>
5
</td>
</tr>
<tr>
<td>
<a href=?pot>Pot</a>
</td>
<td>
15
</td>
</tr>
</table>
</center>
</body>
<a href=?Close>Close</a></html>
"}
ID:166024
![]() Oct 4 2006, 5:03 am
|
|
But I want him to take up two spaces.
|
Than my code should work. When placing it, it'll show as a one-mob tiled object but when you run it, there will be two
Alternatively, you can do the following: 1) Code in each part, or 2) Instead of importing it into a .dmi, have the image as is.. what I mean is instead of splitting a two-tiled mob from .PNG into .DMI, keep it as .PNG mob/Death If the Death.png file was two tiles big, than the icon will be like that. Likewise, if the file was ~4x3 tiles big, it'll be shown like that, even when mapping. - GhostAnime Remember, these are the accepted file formats: .DMI, .PNG and .BMP (which is worse than .PNG in space consumption - .PNG all the way!) |
Two things:
var/list/shopitems = list(\ Then to use that list: var/shop = GenerateHTMLHeader(title="General Shop") When an item is selected, use Find() to locate the item in the list. var/which = shopitems.Find(selection) Lummox JR |
If you want a multi-tiled object, you have to code it as such, there are many methods and I'll show you one of the most common ones:
The above example shows how to add a top half to a bottom half icon via overlays method... ofcourse since it is an overlay, chances are that it won't have a verb when right-clicked >_> But you can make an object of it placed one step ahead of the bottom half rather than overlaying it.
Remember, there's more than one way to skin a kitten and cook them in a soup.
BTW, do you know how to put icons on a map or was your main question how to put an icon on the map that's 2+ tiles wide?
- GhostAnime