Commands

From OpenAnno

Jump to: navigation, search

command.unit.move(units[], target)

command.unit.attack(units[], target)

command.unit.remove(units[])

command.unit.trade(unit, settlement, ressource, count)

command.unit.state(units[], state)

command.unit.rename(unit, name)

command.unit.dropBalast(units[])

command.building.create(building_class, (position, rotation, variation)[])

command.building.remove(buildings[])

command.building.attack(building, target)

command.building.state(building, state)

command.building.produce(building, product)

command.settlement.autoTrade(settlement, resource[, price])

command.settlement.rename(settlement, name)

command.engine.pause(pause)

command.engine.speed(speed)

command.engine.cheat(cheat)

Frage:

Verwenden wir 2 verschiedene Befehle für Wasser Units und Land Units?

  • Nein, units sind units

Was ist mit NPC Units? Wie soll das gesteuert werden? So wie oben?

  • NPCs werden nicht über commands gesteuert, diese arbeiten von alleine

Von Andre: Was ist mit verschiedenen Einheiten? per ID ?

  • Ja, unit, settlement, ressource, building und die arrays davon (*s[]) sollen auf die ids der jeweiligen sachen verweisen
Personal tools