Original Post
Hi, I'm creating a simple rts game to learn 3d game coding Now what I want is a structure (not a struct though :) thats something like this: event( triggers, conditions, actions ) (you migth recognise that from wc3) so that i can do things like this: SELECT_UNIT( LCLICK, MOUSEOVER.obj == UNIT, appstate.OnSelect(MOUSEOVER.obj)) UNSELECT_UNIT( LCLICK, MOUSEOVER.obj != UNIT, appstate.OnUnselect) BUTTON_CLICK( LCLICK, MOUSEOVER.obj == BUTTON, MOUSEOVER.obj.OnClick) and so on. any suggestions on how to do this?