Page 21 of 400
Re: Ask a simple question, get a simple answer
Posted: Thu Nov 13, 2014 12:37 pm
by Matlock19
Decayer wrote:It's likely that Protection, Evasion and Vitality have to be all lower case.
Strangely enough, when I tried that, the item became unable to be equipped. Even though the "slot = 5" is still there. I'm still lost.
Re: Ask a simple question, get a simple answer
Posted: Thu Nov 13, 2014 2:56 pm
by Aisuu
Question: Any idea how to replicate item "island_map"?
I need something similar. After right click on scroll, open up big picture on full screen and with different sound effect on open and close

Re: Ask a simple question, get a simple answer
Posted: Thu Nov 13, 2014 5:09 pm
by Scotty
How to use getMouseItem() to determine what item is in hand?
I would have guessed getMouseItem().name would be the way to do it, but that just returns nil.
Edit: Oh silly me: getMouseItem().go.name
Re: Ask a simple question, get a simple answer
Posted: Fri Nov 14, 2014 11:44 pm
by kelly1111
Question: What is need to douse or turn of a lightsource... for instance a castle_pillar_canleholder ?
I have tried this, but it returns a attempt to call method a "nil" value
function dousecandle()
candleholder_1.light:deactivate();
end
Re: Ask a simple question, get a simple answer
Posted: Fri Nov 14, 2014 11:49 pm
by kelly1111
kelly1111 wrote:Question: What is need to douse or turn of a lightsource... for instance a castle_pillar_canleholder ?
I have tried this, but it returns a attempt to call method a "nil" value
function dousecandle()
candleholder_1.light:deactivate();
end
Ha..found it.. it is "disable"
Re: Ask a simple question, get a simple answer
Posted: Sat Nov 15, 2014 4:35 am
by remilafo
I am using castle tileset for an interior section and want to use forest tileset outside..
when i walk outside the exterior of the castle walls are see through, what's going on here?
Remilafo
Re: Ask a simple question, get a simple answer
Posted: Sat Nov 15, 2014 12:19 pm
by Karinas23
remilafo wrote:I am using castle tileset for an interior section and want to use forest tileset outside..
when i walk outside the exterior of the castle walls are see through, what's going on here?
Remilafo
walla only form properly where floor tile meets wall tile, so castle wall meeting forest floor causes weirdness. You just have to cover it up with assets
Re: Ask a simple question, get a simple answer
Posted: Wed Nov 19, 2014 10:55 pm
by kelly1111
What Am I doing wrong?
I am getting an " end expected (to close if at line 11) near <eof> error. Can someone explain to me what causes this error so I can learn more about LUA and what I did wrong?
Below the function I made (it worked at first but I added some lines, and now get this error) ... it's a very messy written function..I know
Code: Select all
function countercages()
cages_counter.counter:getValue()
if cages_counter.counter:getValue()==12 then
hudPrint("An Apetite for bovine destruction \n The scent of your human Debris") else
if cages_counter.counter:getValue()==11 then
playSound("wolves");
else
if cages_counter.counter:getValue()==10 then
cages_teleporter_1.controller:activate();
cages_teleporter_2.controller:activate();
cages_teleporter_3.controller:activate();
cages_teleporter_4.controller:activate();
cages_teleporter_5.controller:activate();
cages_teleporter_6.controller:activate();
cages_teleporter_7.controller:activate();
cages_teleporter_8.controller:activate();
cages_teleporter_9.controller:activate();
cages_teleporter_10.controller:activate();
playSound("warg_howl");
else
if cages_counter.counter:getValue()==9 then
playSound("wolfer");
else
if cages_counter.counter:getValue()==8 then
else
if cages_counter.counter:getValue()==7 then
cage_spear_1.door:open();
cage_spear_10.door:open();
else
if cages_counter.counter:getValue()==6 then
cage_spear_2.door:open();
cage_spear_9.door:open();
else
if cages_counter.counter:getValue()==5 then
cage_spear_3.door:open();
cage_spear_8.door:open();
else
if cages_counter.counter:getValue()==4 then
cage_spear_4.door:open();
cage_spear_7.door:open();
else
if cages_counter.counter:getValue()==3 then
cage_spear_5.door:open();
cage_spear_6.door:open();
else
if cages_counter.counter:getValue()==2 then
playSound("warg_howl");
else
if cages_counter.counter:getValue()==1 then
hudPrint("...LET THE HUNT BEGIN...")
else
cages_counter.counter:setValue(13)
cages_timer.timer:stop()
end
end
end
end
end
end
end
end
end
Re: Ask a simple question, get a simple answer
Posted: Wed Nov 19, 2014 11:21 pm
by NutJob
..................
Re: Ask a simple question, get a simple answer
Posted: Wed Nov 19, 2014 11:43 pm
by QuintinStone
Use "elseif" instead of "else if" in lua.