Author Topic: Harm  (Read 461 times)

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Harm
« on: November 07, 2011, 01:03:52 pm »


               Is there a way to make the Harm spell be untagertable upon non-living objects?

I can always have the script exit out with  checking OBJECT_TYPE_, but would rather not have them be even targetable.

Is this possible, or is targetting hard-coded?

Thanks '<img'>
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Harm
« Reply #1 on: November 07, 2011, 02:02:33 pm »


               That's handled in the TargetType column in the spells.2da.  You'd just need to edit that to only have self, creature, and item instead of whatever it is by default.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Harm
« Reply #2 on: November 07, 2011, 02:18:47 pm »


               In other words, no its not possible.
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Harm
« Reply #3 on: November 08, 2011, 04:08:13 am »


               

ShaDoOoW wrote...

In other words, no its not possible.


Well, I've got the 2da open.  Am I missing something that is more obvious than editing the target type as suggested, then putting the new spells.2da in our 2da hak?

Because with TlkEdit, I simply had to click in the field, and it gave me a drop down menu with check boxes.  I un-selected everything but creatures, and it was good to go.
               
               

               


                     Modifié par WoC_Builder, 08 novembre 2011 - 04:13 .
                     
                  


            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Harm
« Reply #4 on: November 08, 2011, 04:17:49 am »


               

WoC_Builder wrote...

ShaDoOoW wrote...

In other words, no its not possible.


Well, I've got the 2da open.  Am I missing something that is more obvious than editing the target type as suggested, then putting the new spells.2da in our 2da hak?


No, it's that simple, though I'm not sure if the players need the same edited spells.2da or not for someting as minor as a target type switch.

TargetType values

Value Target
0x01 self
0x02 creature
0x04 area/ground
0x08 items
0x10 doors
0x20 placeables

Those are the hex values needed for altering it.  Self + Creature + items (to allow for magic item crafting) is 0x0B.
               
               

               


                     Modifié par Failed.Bard, 08 novembre 2011 - 04:19 .
                     
                  


            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Harm
« Reply #5 on: November 08, 2011, 07:25:22 am »


               Players definitely will need the altered spells.2da on their end.  A mismatch between the server and player client version in regards to target type can lead to a spell being reported as not castable or not being prepared.  I've had it happen a couple of times when altering existing spells for my PW.

Server side is ok if it's something server-side only (such as which script is used for a spell's impact script), but anything that the player client also makes use of needs to be on both server and player side...which is pretty much everything except the name of the impact script. '<img'>
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Harm
« Reply #6 on: November 08, 2011, 08:29:12 am »


               

Failed.Bard wrote...

WoC_Builder wrote...

ShaDoOoW wrote...

In other words, no its not possible.


Well, I've got the 2da open.  Am I missing something that is more obvious than editing the target type as suggested, then putting the new spells.2da in our 2da hak?


No, it's that simple, though I'm not sure if the players need the same edited spells.2da or not for someting as minor as a target type switch.

TargetType values

Value Target
0x01 self
0x02 creature
0x04 area/ground
0x08 items
0x10 doors
0x20 placeables

Those are the hex values needed for altering it.  Self + Creature + items (to allow for magic item crafting) is 0x0B.

Right sure. I misunderstood the OP and didnt realized that harm can be cast to placeables and doors as well. I simply though he dont want to the spell to be cast on constructs for example. But since he was referring to the OBJECT_TYPE_ my presumption doesnt make sense.:innocent: