Use WeiDU function GAME_IS. The TP2-code can be like this1-how do you check if one's playing BG1 or SoA?
REQUIRE_PREDICATE (GAME_IS ~bg2~ /* the game can be SoA and not a ToB (this is a comment) */ OR GAME_IS ~tob~ /* the game can be ToB too */ ) AND NOT (GAME_IS ~bg1~ /* the game must not be bg1 */ OR GAME_IS ~totsc~ /* the game must not be totsc too */ ) ~This mod is for BG2:SoA, BG2:ToB and BGT games only.~ /* this is the error message */You can add NOT GAME_IS ~bgt~ if you need. Look at the WeiDU documentation.
For the answer on the question 2 and others look at the Tutorials on the pocket plane.