Scripting help please

Jake_2257

New member
Joined
Jun 22, 2012
Messages
5
Can anyone explain to me why my creature won't perform any actions using the actions in the creature enum file ie. "force Creature0 CREATURE_GET_IN_POSITION_TO_ATTACK_PLATOON EnemyPlatoon0"
I can't seem to figure out how to script the creatures' movements using conditional loops, is this even possible? If anyone knows, could you help me out please?
 
Here I was doing some testing and I got a creature to kill an army using this


force oCreature CREATURE_ATTACK_TROOPS_SPECIAL_MOVE_1 Platoontest
wait until get distance from {oCreature} to {Platoontest} < 20
force oCreature CREATURE_CAST_FIREBALL_ON_PLATOON Platoontest
//set oCreature priority 1
wait until get number of villagers in platoon Platoontest == 0


When I was testing this what happened was the creature slowly moved to the army

Then Killed them with a fire ball miracle

The command "set oCreature priority 1" Was messing it up at first for some reason
 
Back
Top