Author Topic: How to make a PC inoffensive?  (Read 520 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to make a PC inoffensive?
« Reply #15 on: August 02, 2014, 11:42:34 am »


               

wrong way to do it, use spellhook
 
if you dont have spellhook set yet either set it, instructions in the link above or since you have 1.71 you can use internal spellhook to do it, open 70_spellhook, locate void main()
and add this line under declared variables:
if(GetLocalInt(OBJECT_SELF, "arena"))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
return;
}
 
this code will work in regular spellhook which is preffered to use though (since 70_spellhook might change in next CPP version and you would have to delete it and do this change again to get new features)

 
Nice!
               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to make a PC inoffensive?
« Reply #16 on: August 05, 2014, 10:03:22 pm »


               


wrong way to do it, use spellhook


 


if you dont have spellhook set yet either set it, instructions in the link above or since you have 1.71 you can use internal spellhook to do it, open 70_spellhook, locate void main()


and add this line under declared variables:


if(GetLocalInt(OBJECT_SELF, "arena"))


{


SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);

return;


}


 


this code will work in regular spellhook which is preffered to use though (since 70_spellhook might change in next CPP version and you would have to delete it and do this change again to get new features)




 


Is possible to make an object type creature immune to TimeStop?


 


I tried to use this as oTarget = GetSpellTargetObject()


 


    if((GetTag(oTarget) == "Batalha_Harat") && (GetSpellId() == SPELL_TIME_STOP))

    {

        SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);

        return;

    }

 

The spell time stop don't have a specify target. Do it works anyway?

               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to make a PC inoffensive?
« Reply #17 on: August 05, 2014, 10:07:02 pm »


               

since you now have 1.72 try IMMUNITY_TIMESTOP int 1 on creature


 


it will work if you are using unmodified CPP version of timestop script (nw_s0_timestop)



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to make a PC inoffensive?
« Reply #18 on: August 05, 2014, 10:15:22 pm »


               


since you now have 1.72 try IMMUNITY_TIMESTOP int 1 on creature


 


it will work if you are using unmodified CPP version of timestop script (nw_s0_timestop)




 


GOOD feature!


               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
How to make a PC inoffensive?
« Reply #19 on: August 06, 2014, 05:53:02 am »


               


I think the best way would be to create two factions. One for one arena combatant, another for the other. Set both factions to be hostile towards each other, but not hostile to players, defenders, commoners, or merchant faction. That way they duke it out without ever targeting anyone but each other.




In the end I created another faction. (neutral)  '<img'>