- Jul 6, 2010
- 10
- 0
- 27
Hi all, 2 questions, one on basic NPC scripting and another on changing maps.
I am using xtreme mud and basically, what they did was make a single NPC that could teach you skills, sell you books, repair stuff and so on. I on the other hand want to break this up into seperate NPC's and ive had a hard time reverse engineering it.
I have successfully created:
[NPC] MartialBookStore - Patrick (Sells the basic warrior books)
[NPC] MartialTrainer - Ciaran (Gives a skill in return for the book)
When you click on Ciaran you get:
"I can teach you the basics of Martial Arts.
You will need to provide the necessary book
and I will charge a small fee"
-Warrior Skills
-Exit
When you click on "Warrior Skills" you get:
Fencing Cost: 7000
Slaying Cost: 14000
Thrusting Cost: 19000
HalfMoon Cost: 24000
Now what I need is a script that allows the user to select the relevant skill and
have money deducted and a skill installed onto the character. Can anyone enlighten
me? Im a better designer than scripter :-(
Also
How do you setup maps so that when the player moves onto a specific co-ordinate, the level/map
changes?
---------- Post added at 06:29 PM ---------- Previous post was at 04:39 PM ----------
Ok well, I fixed the NPC, issue was staring me in the face and just didnt click on. I still need to know how to script in map changes though so if anyoone can help with that I would be much gratefull
I am using xtreme mud and basically, what they did was make a single NPC that could teach you skills, sell you books, repair stuff and so on. I on the other hand want to break this up into seperate NPC's and ive had a hard time reverse engineering it.
I have successfully created:
[NPC] MartialBookStore - Patrick (Sells the basic warrior books)
[NPC] MartialTrainer - Ciaran (Gives a skill in return for the book)
When you click on Ciaran you get:
"I can teach you the basics of Martial Arts.
You will need to provide the necessary book
and I will charge a small fee"
-Warrior Skills
-Exit
When you click on "Warrior Skills" you get:
Fencing Cost: 7000
Slaying Cost: 14000
Thrusting Cost: 19000
HalfMoon Cost: 24000
Now what I need is a script that allows the user to select the relevant skill and
have money deducted and a skill installed onto the character. Can anyone enlighten
me? Im a better designer than scripter :-(
Also
How do you setup maps so that when the player moves onto a specific co-ordinate, the level/map
changes?
---------- Post added at 06:29 PM ---------- Previous post was at 04:39 PM ----------
Ok well, I fixed the NPC, issue was staring me in the face and just didnt click on. I still need to know how to script in map changes though so if anyoone can help with that I would be much gratefull