Author Topic: New lua functions for cell markers  (Read 968 times)

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
New lua functions for cell markers
« on: 25 September 2012, 07:05:55 »
- added lua functions to add / remove cell markers:
addCellMarker(0,'test from scenario!','',cellMarker)
param1=factionindex
param2=cell hint
param3=empty string
param4=cellPosition

removeCellMarker(0,{46,13})
param1=factionindex
param2=cellPosition

Through lua you may add 'system' markers that do not belong to any team. USe a faction index of -1 for those types of faction markers.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: New lua functions for cell markers
« Reply #1 on: 25 September 2012, 07:27:40 »
addCellMarker(0,'test from scenario!','',cellMarker)
param1=factionindex
param2=cell hint
param3=empty string
param4=cellPosition
What's the empty string (parameter 3) for?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: New lua functions for cell markers
« Reply #2 on: 25 September 2012, 14:12:38 »
A placeholder for now (I may allow for a custom texture file to be used)

ProfEclipse

  • Summoner
  • **
  • Posts: 49
    • View Profile
Re: New lua functions for cell markers
« Reply #3 on: 26 September 2012, 13:52:04 »
Be more detailed ? I don't know.