Here is an example
#IF
!CheckMonMap "E003,40,40,40" 90 Monkey
#ACT
MonGenP "E003,40,40,30" EvilMonkey 45 "noitem"
MonGenP "E003,40,40,30" Monkey 45 "noitem"
MonGenP "E003,40,40,30" EvilFanatic1 20 "noitem"
ChangeMonLevel "E003" "EvilMonkey" 99
ChangeMonLevel "E003" "Monkey" 99
ChangeMonLevel "E003" "EvilFanatic1" 99
ApplyMonEx "E003,40,40,40" EvilMonkey [MonsterSide] "Monkey"
ApplyMonEx "E003,40,40,40" Monkey [MonsterSide] "Monkey"
ApplyMonEx "E003,40,40,40" EvilFanatic1 [MonsterSide] "Monkey"
#IF
Equal N2 2
#ACT
ApplyMonMission "E003, 40, 40, 40,9999" "Monkey" "E003,40,40"
#IF
Equal N2 4
#ACT
ApplyMonMission "E003, 40, 40, 30, 10" "Monkey" "E003, 16, 18"
ApplyMonMission "E003, 40, 40, 30, 10" "Monkey" "E003, 16, 55"
ApplyMonMission "E003, 40, 40, 30, 10" "Monkey" "E003, 66, 16"
ApplyMonMission "E003, 40, 40, 30, 10" "Monkey" "E003, 66, 55"
If N2 = 2 then all monkeys inside E003, 40, 40, 30 will attack towards E003 65 55
If N2 = 4 then 10 monkeys will attack E003, 16, 18 - 10 will also attack E003, 16, 55 E003, 66, 16 & E003, 66, 55
You can find all these commands in 3.55 Envir