Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Ok I got it to work, but after you use the lever 9 times it still spawns rat_shanks. I thought if "fed_counter > 9 then" would stop the player using the lever further. Once it's greater than 9 it should stop and hudPrint the text (Nothing happens)?? What imam I doing wrong on this guys thxs in return
fed_counter = 0
function feedTheParty()
if fed_counter > 9 then
hudPrint("Nothing happens.")
else
fed_counter = fed_counter + 1
pickup_food_alcove.surface:addItem(spawn("rat_shank").item)
playSound("level_up")
end
end
EDIT: Errrr sorry this code does work I missed 1 count with the level
I need a Script that allows me to turn the Party to either 0,1,2,3 when the walk onto a floor_trigger. I think this was mentioned b4 but I cannot find the Script. I know that the player can still use the mouse to turn, but I only need it to happen on level entry or exit.
Do you want the party to simply turn (in this case: party:setPosition(party.x,party.y,0/1/2/3,party.elevation,party.level) is enough) or to be incapable of turning after you set the facing (which involves the onTurn hook)?