How does the engine decide if you cant' cast a spell at a target due to PvP, or Diffaculty settings?
PvP and Diffaculty Settings
Débuté par
KenquinnTheInsaneOne
, nov. 13 2010 06:40
#1
Posté 13 novembre 2010 - 06:40
#2
Posté 13 novembre 2010 - 10:59
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
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
Posté 14 novembre 2010 - 10:52
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
Posté 14 novembre 2010 - 11:45
spells.2da column "HostileSetting".
-420
-420
#5
Posté 15 novembre 2010 - 01:39
So you can only customize spells that it thinks are hostile. Everything else hard coded?
#6
Posté 16 novembre 2010 - 06:29
It depends, what do you define as "everything else"?KenquinnTheInsaneOne wrote...
So you can only customize spells that it thinks are hostile. Everything else hard coded?
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
Posté 16 novembre 2010 - 08:25
Thank you for the help 420. I no longer need assistance.





Retour en haut






