Aller au contenu

Photo

Harm


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
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 :)

#2
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
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.

#3
Shadooow

Shadooow
  • Members
  • 4 474 messages
In other words, no its not possible.

#4
WoC_Builder

WoC_Builder
  • Members
  • 225 messages

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 .


#5
Failed.Bard

Failed.Bard
  • Members
  • 774 messages

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 .


#6
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 882 messages
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. :P

#7
Shadooow

Shadooow
  • Members
  • 4 474 messages

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: