Jump to content

scripting problems


alma

Recommended Posts

1) I'm trying to stop the player teleporting from a cell. Disable teleport only seems to work with standard recall but Tribunal and Abu Manor rings still work. How would you script to kill the player if he/she left the cell?

 

2) Is there any way for an NPC to react only if the player's inventory is empty.

 

Any help would be appreciated

Link to comment
Share on other sites

1) Use GetPCCell.

 

2) Unless you're willing to settle for an actor checking to see -- through dialog -- if the PC has any clothing or armor equipped, the only way to do such a thing would be to get the PC's speed and subject it through an unknown formula, which, if it works at all, which is quite improbable, would yield highly inaccurate figures for the PC's current encumberance.

Link to comment
Share on other sites

1) Use GetPCCell.

 

do you mean if getPCCell =0 then set health to 0

 

if that works, how do I counter it when the NPC later teleports the player to another location.

Unless you're willing to settle for an actor checking to see -- through dialog -- if the PC has any clothing or armor equipped

 

How would you do this? could there be a check to see if the player is lying.

 

Thanks for your prompt response

 

BTW, I have an NPC called Evil male without a father, are you related :P

Link to comment
Share on other sites

1)

 

If ( GetPCCell "OMG LIEK TORTUR CHAMBRES!!!1" )

 Set HasBeenInCell to 1

ElseIf ( HasBeenInCell )

 If ( AllowTeleport < 1 )

   Player->SetHealth 0

 EndIf

EndIf

 

2) It's an actual dialog function, like PC sex, race, crime level, &c. -- not a scripted dialog choice. Look through the greetings given by NPCs when the PC is naked for examples of how to set this up.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...