I'm trying to code myself a simple weapon shop NPC from scratch but I'm having problems. Using the following script, when any of the links are clicked I get the relevant texts, but not the usual box where the items to buy are, or the spaces put items for selling / repairing.
I think it might be something wrong with my settings as I don't understand them at all (is there a list anywhere of what they mean?) but they're the same as a blacksmith NPC already in so I don't know lol
Any help would be great Thanks, Penance.
I think it might be something wrong with my settings as I don't understand them at all (is there a list anywhere of what they mean?) but they're the same as a blacksmith NPC already in so I don't know lol
Code:
%100
+5
+6
+10
+11
+15
+19
+20
+21
+22
+23
+24
+26
[@main]
Welcome <$USERNAME>. I have recently decided to begin my own \
business, dealing with weapons. I was once a brilliant \
craftsman, so my goods are naturally of the highest quality. \
Is there anything that you need? \
<Buy/@buy> weapons \
<Sell/@sell> weapons \
<Repair/@repair> weapons \
<Special Repair/@s_repair> weapons \
<Exit/@exit> \ \
[@buy]
Which weapon do you need? \ \ \
<Back/@main> \ \
[@sell]
Show me the weapon you're selling. \ \ \
<Back/@main> \ \
[@repair]
Which weapon needs repairing? \ \ \
<Back/@main> \ \
[@s_repair]
My special repairs are set at a higher price than usual. \
Which weapon would you like to special repair? \ \
<Back/@main> \ \
[~@repair]
You're weapon is repaired fine. \ \ \
<Back/@main> \ \
[~@s_repair]
The special repair worked fine. \ \ \
<Back/@main> \ \
[goods]
WoodenSword 100 1
Dagger 100 1
EbonySword 100 1
BronzeSword 100 1
ShortSword 100 1
IronSword 100 1
BronzeAxe 100 1
Trident 100 1
HookedSword 100 1
Scimitar 100 1
SteelAxe 100 1
SteelSword 100 1
HookedSpear 100 1
PrinceSword 100 1
KrissSword 100 1
MartialSword 100 1
PowerAxe 100 1
PurifierSword 100 1
FireBloodSword 100 1
PickAxe 100 1
Any help would be great Thanks, Penance.