A newcomer needs scripting help beyond my powers
Posted: Tue Dec 04, 2012 4:07 pm
Edit: Grimwold is a scripting ninja, fixed it, and explained it, to boot!
We have a new arrival beginning to learn the scripting and editor. He's got a good grasp of it, but needs a fairly complex script for a puzzle that I tried to help him with. I dont have my cpu for the next couple of days, and just wrote him a script to alter, that I can't debug myself right now., it doesn't work. If you wanna help the guy out, here's the script he has so far.
Sorry, the text wont stagger when I send? He wants to pull a lever to "Check" 2 sets of alcoves for 2 solutions, or hurt the party if both are wrong.His name is Redweaver and here is the thread explaining what he trying to do.
viewtopic.php?f=14&t=4437
If you can fix it up and pm him, he will be very appreciative.
We have a new arrival beginning to learn the scripting and editor. He's got a good grasp of it, but needs a fairly complex script for a puzzle that I tried to help him with. I dont have my cpu for the next couple of days, and just wrote him a script to alter, that I can't debug myself right now., it doesn't work. If you wanna help the guy out, here's the script he has so far.
SpoilerShow
for i in dungeon_alcove_1:containedItems() do
if i.name == "blue_gem" and
for i in dungeon_alcove_4:containedItems() do
if i.name == "red_gem" and
for i in dungeon_alcove_5:containedItems() do
if i.name == "green_gem" then
exitdoor:open()
break
else
for i in dungeon_alcove_2:containedItems() do
if i.name == "green_gem" and
for i in dungeon_alcove_3:containedItems() do
if i.name == "red_gem" and
for i in dungeon_alcove_5:containedItems() do
if i.name == "blue_gem" then
prizedoor:open()
break
else
spawn("poison_cloud", party.level, party.x, party.y, 0)
end
end
end
end
end
end
end
end
end
end
end
end
if i.name == "blue_gem" and
for i in dungeon_alcove_4:containedItems() do
if i.name == "red_gem" and
for i in dungeon_alcove_5:containedItems() do
if i.name == "green_gem" then
exitdoor:open()
break
else
for i in dungeon_alcove_2:containedItems() do
if i.name == "green_gem" and
for i in dungeon_alcove_3:containedItems() do
if i.name == "red_gem" and
for i in dungeon_alcove_5:containedItems() do
if i.name == "blue_gem" then
prizedoor:open()
break
else
spawn("poison_cloud", party.level, party.x, party.y, 0)
end
end
end
end
end
end
end
end
end
end
end
end
viewtopic.php?f=14&t=4437
If you can fix it up and pm him, he will be very appreciative.