Is there some trick to say test for six (creatures I assume have no six) for a script to detect if an actor is a creature or not?
Scriptname aadpMainCombatQuest extends Questspell Property ActorCombatAbility Autofaction CreatureFactionfaction PreyFactionfaction DwarvenAutomationFactionspell Property TestIt AutoEVENT onInit() registerForUpdate(0.2)endEVENTEVENT onUpdate() Actor randomActor = Game.FindRandomActorFromRef(Game.GetPlayer(), 2000)if !randomActor.IsDead() && !randomActor.IsInFaction(CreatureFaction) && !randomActor.IsInFaction(DwarvenAutomationFaction) && !randomActor.IsInFaction(PreyFaction) if (randomActor.Hasspell(ActorCombatAbility) == 0) randomActor.Addspell(ActorCombatAbility) randomActor.Addspell(TestIt) ;Debug.messagebox("spell now on " + randomactor) endifendif endEVENT
Scriptname aadpMainCombatQuest extends Questspell Property ActorCombatAbility Autofaction CreatureFactionfaction PreyFactionfaction DwarvenAutomationFactionspell Property TestIt AutoEVENT onInit() registerForUpdate(0.2)endEVENTEVENT onUpdate() Actor randomActor = Game.FindRandomActorFromRef(Game.GetPlayer(), 2000)if !randomActor.IsDead() && !randomActor.IsInFaction(CreatureFaction) && !randomActor.IsInFaction(DwarvenAutomationFaction) && !randomActor.IsInFaction(PreyFaction) if (randomActor.Hasspell(ActorCombatAbility) == 0) randomActor.Addspell(ActorCombatAbility) randomActor.Addspell(TestIt) ;Debug.messagebox("spell now on " + randomactor) endifendif endEVENT