Difference between revisions of "Questions"

Jump to navigation Jump to search
808 bytes removed ,  14:56, 8 October 2006
imported>Scruggs
(I've barely made a dent in this page...suggestions? Too many new pages?)
imported>Joshua Boniface
Line 10: Line 10:
:::Yielding only works if the NPC would not normally attack you. So, you probably want to increase the necromancer's disposition to the player and/or reduce his aggression when the player yeilds. Alternatively, try setting the necromancer up as non-hostile in the editor (lower his aggression) and give him a script to startCombat when the player gets within a certain distance; since in this case he wouldn't normally attack you, yielding will probably work. [[User:Scruggs|Scruggs]] 11:55, 8 October 2006 (EDT)
:::Yielding only works if the NPC would not normally attack you. So, you probably want to increase the necromancer's disposition to the player and/or reduce his aggression when the player yeilds. Alternatively, try setting the necromancer up as non-hostile in the editor (lower his aggression) and give him a script to startCombat when the player gets within a certain distance; since in this case he wouldn't normally attack you, yielding will probably work. [[User:Scruggs|Scruggs]] 11:55, 8 October 2006 (EDT)


::::--[[User:Joshua Boniface|Joshua Boniface]] 11:58, 8 October 2006 (EDT): Alright, thanks a lot! This was driving me crazy! Update: I'm still having some problems. My script is below. I basically just want the necromancer to yield to the player if the player's infamy is higher than their fame. This script however is failing miserably. Mainly, the necromancer yields but then immediately begins fighting again. The necro's aggression is at 50. The OnActivate is used only because there is no "OnYield" or anything like that, and this is the closest thing I can find.
::::--[[User:Joshua Boniface|Joshua Boniface]] 11:58, 8 October 2006 (EDT): Alright, thanks a lot! This was driving me crazy!
 
  scriptname  NecromancerCombatScript
  begin GameMode
    if Getdistance Player < 700
      StartCombat player
    endif
  end
  begin OnActivate
    short PFame
    set PFame to GetPCFame
    short PInfamy
    set PInfamy to GetPCInfamy
    if PFame < PInfamy
      ModDisposition player 55
      Yield player
    else
      ;MessageBox "Die"
    endif
  end


==Sheathing Weapons==
==Sheathing Weapons==

Navigation menu