Page 2 of 2

Re: Help needed with really simple scripts

Posted: Sun Oct 28, 2012 1:06 am
by Merethif
crisman wrote:The script you gave me it's working fine, just had to tweak a little bit - delete last end and put function check() between last if and the end above it. Anyway, I'd like to give you a much simpler code for that:
SpoilerShow

Code: Select all

function check()
for i = 1, 4 do
	for j = 1, 31 do
	local itemObj = party:getChampion(i):getItem(j)
		if itemObj ~= nil then
			if itemObj.name == "rock" then
				teleporter_1:activate()
			end
		end
	end
end
end
It does not deactivate the teleporter though, it will only need a couple more strings.
Thanks. I'll check it tomorrow though, because this evening instead of usual modding, I've been playing The Tomb of Zarthos ;-)

Re: Help needed with really simple scripts

Posted: Sun Oct 28, 2012 1:12 am
by Neikun
So that's where everyone's been..
Haha
I've been going a little texture crazy over here.
Currently working on some cleaner dungeons.
SpoilerShow
Image
Edit: of course, I could always put the moss back on top of these walls, too :o

Re: Help needed with really simple scripts

Posted: Sun Oct 28, 2012 2:55 pm
by crisman
Cool, I can imagine some sort of symbols/runes based puzzles with those marks on the walls, nice job :D

Re: Help needed with really simple scripts

Posted: Mon Oct 29, 2012 5:05 pm
by Merethif
crisman wrote:The script you gave me it's working fine, just had to tweak a little bit - delete last end and put function check() between last if and the end above it. Anyway, I'd like to give you a much simpler code for that:
SpoilerShow

Code: Select all

function check()
for i = 1, 4 do
	for j = 1, 31 do
	local itemObj = party:getChampion(i):getItem(j)
		if itemObj ~= nil then
			if itemObj.name == "rock" then
				teleporter_1:activate()
			end
		end
	end
end
end
It does not deactivate the teleporter though, it will only need a couple more strings.
Thanks crisman. Works great. Actually it's even better when teleporter is not deactivated after it become activated once.
crisman wrote:Cool, I can imagine some sort of symbols/runes based puzzles with those marks on the walls, nice job :D
Please guys, stop thinking that way for a while. You're spoiling my room idea for "One Room" round robin! :-D