Share

Freedroid

Tracker: Feature Requests

7 Move shoplist from C to lua - ID: 2857560
Last Update: Comment added ( stedevil )

To allow eg more flexibility in mission completion rewards and at the same
time try to reuse as much code as possible, I suggest we move the lists of
what items you can find in which shop from the C source into eg a file
called freedroid.shop_archetypes

The format could be something like

shop="doctor"
LuaCode={
sell_item("A")
sell_item("B")
sell_item("C")
sell_item("D")
if (done_quest("Bender's problem")) then sell_item("E") else
sell_item("F") end
}


This would reuse as much as possible of the code and syntax we already have
while being flexible and powerful enough to let us do whatever we can do in
the dialogs.


Stefan ( stedevil ) - 2009-09-12 15:49

7

Open

None

Nobody/Anonymous

None

freedroidRPG

Public


Comments ( 2 )




Date: 2009-11-10 02:26
Sender: stedevil

Hmm, sounds interesting. Would make things feel a bit more real especially
in our "limited resources" world.

If it's easy enough to do, then why not?

The follow up question is of course, how many items should be remembered?
For sure not 100, maybe the last 5-10 you sold that specific npc?




Date: 2009-11-07 18:42
Sender: ahuilletProject AdminAccepting Donations

Hi,

I'd like to add one thing to that: currently NPCs have no memory of what
you sold them or not, and if you sell them something you cannot get it
back. It has become common, in video games, that NPCs have a persistent
inventory, ie. if you buy something it's not here any longer and if you
sell something it's available in the NPC inventory afterwards.

Do we want that additional feature or not?


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.