User Name:


Forgot your password?
Vote for Us!
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, Sogou

Members: 0
Guests: 19
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Using the setforcer command.
Forum Rules | Mark all | Recent Posts

Using the setforcer command.
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 5, 2011, 11:49 am
Go to the top of the page
Go to the bottom of the page

JoinedAug 5, 2011

After using the setforcer command and confirming within the player file that the relevant skills (as I understand them) are at max, the "lightsabers" weapon skill doesn't appear on the players' skill list. Additionally, the Jedi trainer says that the player isn't yet ready to practice that skill. The lightsaber weapon skill is at max in the player file and the character wields lightsabers without issue, is able to whirlwind and so forth.

Does anyone have any insight as to why the weapon skill's not showing up? Thanks.
Post is unread #2 Aug 5, 2011, 3:28 pm   Last edited Aug 5, 2011, 3:44 pm by ayuri
Go to the top of the page
Go to the bottom of the page

JoinedJun 13, 2008

As far as I can remember, lightsaber isn't an actual weapon skill.
Your valid weapon's are blasters, bowcasters, force pikes, launchers and vibro-blades. Now, you can add the lightsaber into the weapons skill table in the pfile but I'm pretty sure it doesn't do anything. Looking at a few of the forcers in my game, no one has the lightsaber weapon skill except the default forcer we setup to 'train' people.

I do see that in fight.c if I'm reading things right, Lightsaber's are not receiving any sort of bonus to their attacks:
int weapon_prof_bonus_check( CHAR_DATA *ch, OBJ_DATA *wield, int *gsn_ptr )
    int bonus;

    bonus = 0;  *gsn_ptr = -1;
    if ( !IS_NPC(ch) && wield )
       default: *gsn_ptr = -1;          break;
           case 3:      *gsn_ptr = gsn_lightsabers;     break;
           case 2:  *gsn_ptr = gsn_vibro_blades;    break;
           case 4:  *gsn_ptr = gsn_flexible_arms;   break;
           case 5:  *gsn_ptr = gsn_talonous_arms;   break;
           case 6:  *gsn_ptr = gsn_blasters;    break;
           case 8:  *gsn_ptr = gsn_bludgeons;   break;
           case 9:  *gsn_ptr = gsn_bowcasters;  break;
           case 11: *gsn_ptr = gsn_force_pikes; break;

    if ( *gsn_ptr != -1 )
      bonus = (int) ( ch->pcdata->learned[*gsn_ptr] );

    if ( IS_NPC(ch) && wield )
          bonus = get_trust(ch);
    return bonus;

I should say I am really lost when it comes to the fight code in smaugfuss and its derivatives.
Hope it helps,
Pages:<< prev 1 next >>