Author Topic: new baseitem - only goes in off-hand?  (Read 407 times)

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
new baseitem - only goes in off-hand?
« on: August 02, 2014, 03:50:12 pm »


               

Hi,


 


I'm trying to make thieves' tool/pick items that are equippable.  There must be something I'm missing because I cannot get them to stay in the right-hand. No matter what they snap to the off-hand.  They work fine this way in the off-hand but I'd really like them to prevent you from having a weapon in hand when used (two handed would be even better). I've tried various combinations of equippable slots. Anything except 020 and 030 make them unequippable. I tried setting weaponwield to 1 (not wieldable) and 0 (standard one hand)  but those don't make a difference. What am I missing? Or is it possible to make a new item go in the main hand? I assume it must be because people have made new weapons...


 


I started with a new line based based on miscthin since that had the appearances I wanted.


 


Thanks for any suggestions,


 


meaglyn



               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
new baseitem - only goes in off-hand?
« Reply #1 on: August 02, 2014, 09:20:50 pm »


               

code 10 is for main hand, 20 is offhand, so 30 allows both. this should be all that is needed.


 


If that is not sufficient, try setting the item size (weaponsize column) to large (4). This will keep it out of the offhand in many cases due to internal mechanics, but may restrict small characters from using them entirely (unsure).


 


I don't know if that will guarantee that the offhand will not accept a weapon. What your character can wield is based on the appearance lines for that character. When I was building large and huge creatures for last months' CCC, I was able to wield two two-handed weapons on one creature.



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
new baseitem - only goes in off-hand?
« Reply #2 on: August 03, 2014, 12:18:05 am »


               

Thanks MD.  If I set it to 10 it won't equip at all although the slot still highlights. There must be something else keeping it from the main hand.  I'll try the size thing as a test, but I expect it to refuse to equip if I make it too big for the off-hand. Missing something in the model or something?  If it was the engine itself rejecting it I'd think the slot would not highlight.



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
new baseitem - only goes in off-hand?
« Reply #3 on: August 03, 2014, 12:23:57 am »


               

custom weapons works so copy some weapon and modify it into thieves tools one collumn by one


 


also what line you are adding this? lines between vanilla items shouldnt be touched - there might be some hardcoded stuff on them (which I revealed in my CPP project)



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
new baseitem - only goes in off-hand?
« Reply #4 on: August 03, 2014, 01:11:24 am »


               

Found it! Thanks.   You must have a non-zero value for the WeaponType col. Otherwise it snaps over to the offhand.


 


I can use 10 and keep you only using them in your main hand. You can still have a small weapon on the off hand though. I suppose I can script that if I have to.


The size matters for two-handed but as MerricksDad pointed out making it large enough could prevent small folk from using it. What good is  a halfling if not for burglary.


               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
new baseitem - only goes in off-hand?
« Reply #5 on: August 03, 2014, 01:36:25 am »


               

BTW - thanks for the input Shadooow and MerricksDad!