[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Creating a skill learning system that doesn't rely on class.

Creating a skill learning system that doesn't rely on class.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Mudman10977   USA  (2 posts)  [Biography] bio
Date Thu 15 Nov 2001 12:50 AM (UTC)
Message
Hello all,

FIRST OFF

I'm a newbie coder. I recently began working on a cygwin winport of Smaug1.4a on my home PC, with the goal of learning how the code works. My only programming experience has been with BASIC on an old Tandi Color Computer 3 I had. While I can understand a little about how C works, most of it looks rather confusing.

I started my learning process off by downloading several snippets of code that I would like to have on my mud. I read the installtion instructions, and put the snippets up, and, apart from a few bugs I had in the last one I installed, they worked perfectly fine.

They helped me gain a better understanding of the codes structure, but I'm still stumped as for how I would go about modifing a major (at least to my mind) piece of the code.

WHAT I WANT TO DO

Basically, I want to set up a skill learning system similar to what was in the FF9 PS1 game (If you've never played FF9, the system basically allowed the characters to learn their skills from weapons/equipment they wore).

At first, I thought about setting up a combat earning in fight.c similar to how xp is gained in combat, but, after examining the xp code I have no idea how I would do this, as the code seems far to complex for my current level of knowledge.

My next thought is to create a special object type that would grant the PC use of a skill embedded in the object. Once they had earned enough % (maybe adept) in the skill, then they had learned the skill and could use it without having the item equipped.

Of course, that presents the problem of where would I start this?

HELP

If you know of any helpful documents on coding in Smaug (I once had a doc that explained what each .c .h file contained, and a brief example of how to add things to it, but I don't anymore and have no idea where to get it) I would greatly appreciate it if you could give me a URL to it.

If you can give me any help on this (such as adding object type and how I would code in the learning % info) please reply.

I appreciate any help you can give me, and I thank you all in advance.

Sincerely,

Mudman10977

PS. I appoligize for the length of this message, but I wanted to try and present as much information on what I wanted to do as possible.

MudMan

'Strange visitor from the planet NOCRYPTon.'

[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


7,455 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]