Welcome, Guest. Please login or register.

Author Topic: Plugin help?  (Read 1409 times)

allisonTopic starter

  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1208
  • monolithic since 2012???
    • View Profile
    • Allison Fleischer
Plugin help?
« on: 11 Nov 2016, 12:12 (5 years and 0 months ago) »
I've been trying to develop a new plugin, but I can't figure out how to read and write to the current room's tiles. Any help?

Dav999

  • Administrator
  • Hyper Captain
  • *
  • Posts: 1604
    • View Profile
Re: Plugin help?
« Reply #1 on: 11 Nov 2016, 12:59 (5 years and 0 months ago) »
roomdata[roomy][roomx] is a 1D array with all the tiles for the current room (the variables roomx and roomy are the current room's coordinates, and they start at 0). The tiles in the room are numbered starting at 1, so the 3rd tile from the left and top is roomdata[roomy][roomx][(2*40)+(2+1)].

Info Teddy

  • Ultra Captain
  • ********
  • Posts: 3138
    • View Profile
That’s pretty not neat.
« Reply #2 on: 11 Nov 2016, 13:11 (5 years and 0 months ago) »
I've been trying to develop a new plugin, but I can't figure out how to read and write to the current room's tiles. Any help?
Ved seriously has no plugin documentation?