Aller au contenu

Photo

PvP and Diffaculty Settings


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

#1
KenquinnTheInsaneOne

KenquinnTheInsaneOne
  • Members
  • 27 messages
How does the engine decide if  you cant' cast a spell at a target due to PvP, or Diffaculty settings?

#2
420

420
  • Members
  • 190 messages
The only reason I can think of that you wouldn't be able to target a hostile spell against a target is if the target isn't hostile.



Use the SetPCDislike(oPlayer, oTarget); function to set the PCs to hostile each other then use SetPCLike(oPlayer, oTarget); at the end of the duel to restore them back to neutral.



-420

#3
KenquinnTheInsaneOne

KenquinnTheInsaneOne
  • Members
  • 27 messages
I was curious, as to how the engine decides what a hostile action is. Is it all hardcode, or is partly of it 2da controlled? If it is partly 2da controlled would you mind pointing me to the 2das? I can take it from there.

#4
420

420
  • Members
  • 190 messages
spells.2da column "HostileSetting".



-420

#5
KenquinnTheInsaneOne

KenquinnTheInsaneOne
  • Members
  • 27 messages
So you can only customize spells that it thinks are hostile. Everything else hard coded?

#6
420

420
  • Members
  • 190 messages

KenquinnTheInsaneOne wrote...

So you can only customize spells that it thinks are hostile. Everything else hard coded?

It depends, what do you define as "everything else"?

The HotU expansion added code to Creature's OnPhysicalAttacked event (x2_def_attacked) that prevents plot creatures from reacting to attacks but that's not really helpful for PCs.

What exactly are you trying to accomplish?

-420

#7
KenquinnTheInsaneOne

KenquinnTheInsaneOne
  • Members
  • 27 messages
Thank you for the help 420. I no longer need assistance.