You can do this with entity skills. If you assign your actions in WED, you can set skill values in the properties dialog of the entity. If you create your entity in scripts, do something like this:
Code:
you = ent_create("model.mdl", myPositionVector, myAction);
you.skill1 = 5;
you.skill2 = 10;
Then in your action, you can access the skills like this (no matter how they where set):
Code:
action myAction()
{
if(my.skill1 == 5)
{
// execute code for room 5:
...
}
}