Help - Search - Members - Calendar
Full Version: Theif Detection / Kill
The Nexus Forums > Specific Games > Morrowind > Morrowind Plug-Ins > TES Construction Set
yeppers
since the items i have placed on my merchant are up for grabs by a theif and i am making a "super merchant" the merchant needs a fool proof protection plan. i set the Alarm in the AI to 100 on my merchant, i think this will be sure to catch anyone who has stolen from her. i tested it with 65535 everything and i got caught. what i would like to see is upon stealing from this specific merchant, the person who stole drops dead immediantly... any other solutions are greatly welcome... does anyone know how to accomplish this?
yeppers
also, she is encumbered by about 3000 pounds and more to come soon... so having her attack them probably wont work...
cmac
Well, you could put a script on all the items she has to kill the PC instantly. For example, if the merchant had an Ebony Shortsword,


CODE


Begin StingyMerchant

IfGetPcItem "ebony shortsword_merchant"<0,

       Player-> SetHealth 0

endif

end
Lord Of The Cheese
that will work, if you want to have the player die when he/she buys the item also.

Begin YEP_Merchant

;goes on merchant
;i love snow...it snowed this week, no school..

Short Warning

If ( GetPCSneaking == 1 )
If ( OnActivate == 1 )
If ( Warning == 0 )
Messagebox, "Stealing is bad, dont do it again", "Ok"
Set Warning to 1
endif
Else
Messagebox, "WHAT DID I TELL YOU?!?!?"
player->SetHealth 0
endif
endif
endif

end

that will call if the pc is sneaking and activates the merchant, Therefore attempting to steal. it gives them a warning, and if they try it again, ....*poof*....
ohGr
as the vocalist from Marduk said, people die in war, what does that mean, who cares?

i cant see pulling out a sword and *uhhhh* dying sound interesting, since im hopeless with scripting and need a nice, dictionary with a million examples or more dry.gif , i cant do much except for topics/quests, people following you and some other simple stuff.

maybe if you could, make her/him/it/ti/necrodeathwizard cast a spell that causes you to die, you know, make one that does 99999999 damage or something, if you can, change the cast cost to 1 or something, fiddle around with her level (even 100 is fine, as long as her/him/it/ti/necrodeathwizard isnt a grim and frostbitten necrodeathwizard of necroyetis and big noodles....see if you can make it a spell that gets you.
Lord Of The Cheese
try explode spell, i cant remember if its a regular game or tribunal function, so just try it...

player->explodespell, "Spell"

so it would look like this

Begin YEP_Merchant

;goes on merchant
;i love snow...it snowed this week, no school..

Short Warning

If ( GetPCSneaking == 1 )
If ( OnActivate == 1 )
If ( Warning == 0 )
Messagebox, "Stealing is bad, dont do it again", "Ok"
Set Warning to 1
endif
Else
Messagebox, "WHAT DID I TELL YOU?!?!?"
player->ExplodeSpell "Spell"
If ( Player->GetHealth > 0 ) ;incase spell doesnt kill player
player->SetHealth 0
endif
endif
endif
endif

end
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.