Author Topic: PvP and Diffaculty Settings  (Read 492 times)

Legacy_KenquinnTheInsaneOne

  • Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
PvP and Diffaculty Settings
« on: November 13, 2010, 06:40:00 pm »


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

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
PvP and Diffaculty Settings
« Reply #1 on: November 13, 2010, 10:59:25 pm »


               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
               
               

               
            

Legacy_KenquinnTheInsaneOne

  • Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
PvP and Diffaculty Settings
« Reply #2 on: November 14, 2010, 10:52:12 pm »


               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.
               
               

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
PvP and Diffaculty Settings
« Reply #3 on: November 14, 2010, 11:45:48 pm »


               spells.2da column "HostileSetting".



-420
               
               

               
            

Legacy_KenquinnTheInsaneOne

  • Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
PvP and Diffaculty Settings
« Reply #4 on: November 15, 2010, 01:39:22 am »


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

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
PvP and Diffaculty Settings
« Reply #5 on: November 16, 2010, 06:29:00 pm »


               

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
               
               

               
            

Legacy_KenquinnTheInsaneOne

  • Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
PvP and Diffaculty Settings
« Reply #6 on: November 16, 2010, 08:25:20 pm »


               Thank you for the help 420. I no longer need assistance.