Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ languages!

languages!

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


Pages: 1  2 

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #15 on Thu 02 Feb 2006 07:48 PM (UTC)
Message
I think that setting a character to speaking=0 sets them to common. I believe that characters are set to speaking=0 on character creation, which is in the function init_char or something like that.

Basically, when you set their language to 100, you also want to set their speaking field to that same language.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Mopop   (115 posts)  Bio
Date Reply #16 on Thu 02 Feb 2006 10:20 PM (UTC)
Message
ugh I greped that and speaking, I looked over comm.c and act_comm.c I dont know where this would be located exactly. Do you know :(? I tried ;_;
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #17 on Thu 02 Feb 2006 10:29 PM (UTC)
Message
Where what is? The racial language is set to 100 in the very lines of code you showed me.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #18 on Thu 02 Feb 2006 10:43 PM (UTC)
Message
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=1945

This topic may help even though its geared for SWR. If you wish to remove/add a language successfully it will point you to the right files to edit.

Keep in mind you need to create/delete the skill in order for it to work as well.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Mopop   (115 posts)  Bio
Date Reply #19 on Fri 03 Feb 2006 03:44 AM (UTC)
Message
Ok well I added this back in at comm.c

if( ( iLang = skill_lookup( "common" ) ) < 0 )
               bug( "%s", "Nanny: cannot find common language." );
            else
               ch->pcdata->learned[iLang] = 100;


When I made a new char common was highlighted. What I want to happen is thier racial language to be highlighted. And common not to even exsist unless they learn it. Its not showing up on prac also, unless you are an imm I even went into skill.dat and changed all the levels to 1.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #20 on Fri 03 Feb 2006 04:22 AM (UTC)
Message
Oookkk... tell me then what needs to happen for the character to be speaking their racial language. What data field needs to be set? By now you should have that understanding, and if you don't, you need to do your homework and figure it out. You're doing things hard enough that it's not enough to just go in hacking and slashing and hoping for the best. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Mopop   (115 posts)  Bio
Date Reply #21 on Sat 04 Feb 2006 03:35 PM (UTC)
Message
I guess I need to do my homework cause I am not sure ;_;
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.


74,603 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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

Go to topic:           Search the forum


[Go to top] top

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