Easiest way would be to set a "campaign" variable using the persons public CD key, account name or character name. (or a combination of all three)
So you can make an item for yourself that when you use it on people will toggle their "Sentinel" status. (I use "Official" instead of "Sentinel" in the scripts below.)
I just finished the custom drinks (whew, took forever) so Ill have more time to help with your scripting. I haven't started on the item filter (yet) but I can put up a sample of how to handle this.
This script should be activated by an item with the "Activate Item" or "Unique Power" property.
//Toggle "Official" status
//by: 420 6/25/04
//Make an item with a "Activate Item" or "Unique Power" property and name this
//script the same name as the items tag and make sure you have the tag based
//script in your Modules OnActivateItem event trigger
void main()
{
object oPC = GetItemActivator();
object oTarget = GetItemActivatedTarget();
string sName = GetName(oTarget);
string sCDKey = GetPCPublicCDKey(oTarget);
int iOfficial = GetCampaignInt("Official", sCDKey, oTarget);
if(iOfficial == 0)
{
SetCampaignInt("Official", sCDKey, 1, oTarget);
FloatingTextStringOnCreature(sName+" is now an Official.", oPC, FALSE);
}
else
{
DeleteCampaignVariable("Official", sCDKey, oTarget);
FloatingTextStringOnCreature(sName+" is no longer an Official.", oPC, FALSE);
}
}
Put this in: Module Properties/Events/OnClientEnter:
//Check "Official" status, give item to Officials
//by: 420 6/25/04
//Put in the OnClientEnter event trigger of the Module Properties
void main()
{
object oTarget = GetEnteringObject();
string sCDKey = GetPCPublicCDKey(oTarget);
int iOfficial = GetCampaignInt("Official", sCDKey, oTarget);
if(iOfficial == 1)
{
CreateItemOnObject("itemsblueprintresref", oTarget);
}
}
This uses the players CDKey to determine if they are an "Official", if they are it creates the item with the Blueprint Resref "itemsblueprintresref".
Hope that helps,
420
EDIT: I made "ItemsBlueprintRresref" lowercase since Blueprint Resref can only be lower case. I also added a bunch of comments to both scripts