Jakkk wrote:
if your still trying to get rub lines to work try something like this:
- Code: Select all
function onInteraction(args)
victim = args.sourceId
if world.loungeableOccupied(entity.id()) then
object.say( rubLines[ math.random( #rubLines ) ] )
end
end
you can pull this coding from a few existing SPO's like the bunyip (among those i can nameoff the top of my mind)... i would look into doing it my self and running a few tests but its been a long time since i did any starbound modding, let along working with lua files, that im probably in need of a full crash course to relearn everything again, so sorry i cant be of any more help in that regard other then digging through a few existing files for things that might be of possible help, that i can think of, the coding format might be different, and your's more detailed in structure but im certain that some past SPO's lua files could be of help if you check them out.
still... nice work so far.