Original Post
Hello all, I'm writing a game using AS, and I need some ideas. It is a fantasy game (turn based). I'm defining everything inside an xml file, and there is a node with code for the different options. For example: I guess you get the general idea. Now the tricky part: Sometimes, players can react to other players events (player A can cast a spell, that whenever player B wins a battle, player A will gain all experience instead. Another example: If a player has water, he won't die in the desert. So whenever a player is going to lose one life, it should check if he has water AND he is in the desert. If so, it should not lose a life. I can hardcode everything, but I want to be able to extend it (that's why I'm using AS :)) I need some kind of dynamic event registration. So an object/player/room can register/unregister an event for another object (temporal or permanent). So in the first example, the spell has an event (OnCastSpell) which should register another player's event (OnBattleEnd), and the second example, the water object should register the player's event (OnLoseLife). I hope I was clear. Any ideas are welcome. Gilad