if( strcmp(tempState.name, tempString) =0)[/code:1gkjhzbu]
This line is wrong, you need == to compare to zero. Otherwise you're assigning 0 to the result of strcmp, but it should actually give you a compile error.
I'm not sure I understand your question. You call GenerateEvent() to trigger an event, and the event you trigger must have the CND_TRIGGERED flag. Which part of this are you having trouble with?
Edit: Don't forget you can look at what other plugins do on SVN. Here's a triggered condition in Sprite:
[code:1gkjhzbu]ADDCND("On any animation finished", "Animations", "%o %n: Any animation finished", &ExtObject::cTrigger, "AnyAnimFinished", CND_TRIGGERED);[/code:1gkjhzbu]
cTrigger just returns true:
[code:1gkjhzbu]long ExtObject::cTrigger(LPVAL params)
...because it should always run the event when GenerateEvent is called.