Mailing List
Home
Forum Home
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Subject: Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Subject: Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Subject: Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Subject: Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Subject: Flash Racing
Subject: MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
creating new skill type

creating new skill type

2005-01-01       - By moclamoose

 Back
Reply:     1     2     3  

Hi!

Now Im trying to create an entirely new skill type, called "trade".  I know
that in tables.c I need to add the proper field here:

int get_skill( char *skilltype )
{
   if ( !str_cmp( skilltype, "Race" ) )
     return SKILL_RACIAL;
   if ( !str_cmp( skilltype, "Spell" ) )
     return SKILL_SPELL;
   if ( !str_cmp( skilltype, "Skill" ) )
     return SKILL_SKILL;
   if ( !str_cmp( skilltype, "Weapon" ) )
     return SKILL_WEAPON;
   if ( !str_cmp( skilltype, "Tongue" ) )
     return SKILL_TONGUE;
   if ( !str_cmp( skilltype, "Herb" ) )
     return SKILL_HERB;
   return SKILL_UNKNOWN;

but Im not entirely sure all of the other places that I need to add entries.  I
know to have the skill saved I need to add entries into save.c in fread_char
and fwrite_char, where else?

Thanks so much!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Now Im trying to create an entirely new skill type
,
called "trade".&nbsp; I know that in tables.c I need to add the proper field
here:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>int get_skill( char *skilltype
)<BR>{<BR>&nbsp;&nbsp;&nbsp; if ( !str_cmp( skilltype, "Race" )
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return SKILL_RACIAL;<BR>&nbsp;&nbsp;&nbsp;
if ( !str_cmp( skilltype, "Spell" ) )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return
SKILL_SPELL;<BR>&nbsp;&nbsp;&nbsp; if ( !str_cmp( skilltype, "Skill" )
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return SKILL_SKILL;<BR>&nbsp;&nbsp;&nbsp;
if
( !str_cmp( skilltype, "Weapon" ) )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return
SKILL_WEAPON;<BR>&nbsp;&nbsp;&nbsp; if ( !str_cmp( skilltype, "Tongue" )
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return SKILL_TONGUE;<BR>&nbsp;&nbsp;&nbsp;
if ( !str_cmp( skilltype, "Herb" ) )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return
SKILL_HERB;<BR>&nbsp;&nbsp;&nbsp; return SKILL_UNKNOWN;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>but Im not entirely sure all of the other places
that I need to add entries.&nbsp; I know to have the skill saved I need to add
entries into save.c in fread_char and fwrite_char, where else?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks so much!</FONT></DIV></BODY></HTML>