Jump to content

"you Cannot Open A Container In Battle"


Domhnall

Recommended Posts

Posted
Is it possible to apply a restriction to when containers are open? This is especially exploitive when you're allowed to pick a lock with some guy chasing you with a battleaxe. I'd like it also tp apply to searching corpses, etc.
Posted
  Domhnall said:
Is it possible to apply a restriction to when containers are open? This is especially exploitive when you're allowed to pick a lock with some guy chasing you with a battleaxe. I'd like it also tp apply to searching corpses, etc.

 

 

I can only do rudimentary scripting, but do know you would do it through a script. Wish theFunkyone or Ceren or some of the other scripting wizards were present. Try something like putting a condition script on the player saying

 

"Container opens < 1

..... 0 = normal action

......1 = battle action

. Container opens >0

.....0 = live NPC

.....1 = Dead NPC

 

A real scripter would laff their *ss off at this prob...but I think it would be something along those lines but you must research the proper terminology..sorry not to be of any more help.

Posted
  Domhnall said:
Is it possible to apply a restriction to when containers are open? This is especially exploitive when you're allowed to pick a lock with some guy chasing you with a battleaxe. I'd like it also tp apply to searching corpses, etc.

 

This might be possible, but a hard task. The first thought that occured to me for this is to edit every container that might be accessibl e to the player during combat (basically every container in the game I suppose) and try something similar to the following:

 

begin OnActivate
if player.IsInCombat
	Message Unable to open container
   ; do something to disable opening / activation of containers
endif
end

 

My guess is that this code would not work completely, as I don't believe every container is opened via a script, or has a script

Archived

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

  • Recently Browsing   0 members

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