Default starting equipment (just an idea)

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Merethif
Posts: 274
Joined: Tue Apr 24, 2012 1:58 pm
Location: Poland

Default starting equipment (just an idea)

Post by Merethif »

I'm not good with scripting so I'll just post an idea, that one of you may find interesting to consider.

I'm looking forward to a script (perhaps something similar to SDP created by Magus) that would spawn default equipment based on classes (or skills) and races of the characters (EOB had such class related starting gear as far as I remember).

More elaborate system would be based on skills and race instead of class and race.
For example Daggers Skill spawns knife, Missile Weapons Skill spawns sling and rocks, Dodge skill spawns tattered cloak... and so on. Likewise minotaur race spawns loincloth, insectoid race spawns silk hose, human race spawns peasant pants and so on. That way minotaur rogue with points in Daggers and Dodge (yes, he got Skilled trait ;-) ) starts with loincloth, knife and tattered cloack.
User avatar
crisman
Posts: 305
Joined: Sat Sep 22, 2012 9:23 pm
Location: Italy

Re: Default starting equipment (just an idea)

Post by crisman »

Yes, it is possible to do such thing. It's only really long, since you are saying it must depend on race, skills. Roughtly, I think there are 18 possibilities.
Unless there's a way much faster (I'm learning new stuff from lua every day...),
I'll try to do two or three possibilities for you, to give you an idea ;)
SpoilerShow
for i = 1, 4 do
if party:getChampion(i):getRace() == "Human" then
if party:getChampion(i):getClass() == "Rogue" then
if party:getChampion(i):getSkillLevel("daggers") > 0 then
local startWeapon = spawn("dagger")
party:getChampion(i):insertItem(11, startWeapon)
-- the 11 is a slot in the inventory. from 11 to 31 are inventory spaces.
end
if party:getChampion(i):getSkillLevel("throwing_weapons") > 0 then
local startWeapon = spawn("throwing_knife")
party:getChampion(i):insertItem(12, startWeapon)
--it's wise to change the backpack slot, otherwise it won't spawn
end
---and so on with the humans rogue
end
if party:getChampion(i):getClass() == "Mage" then
---and so on with the human mages
end
--and so on with the humans
if party:getChampion(i):getRace() == "Minotaur" then
--and so on with the other races
end
end
end
Hope it helps!

EDIT: sorry, copy and paste screwed up the indantation, hope it's clear anyway!
Post Reply