PlaneShift
Development => Development Deliberation => Topic started by: Donari Tyndale on March 06, 2007, 07:34:27 pm
-
I am wondering, where are the events found in the progress_events.sql file from the database processed? Is there some kind of list of possible parameters somewhere?
-
The processing of the events is done server side as far as I can figure.
The database itself yields a truckload of examples, but if that is not enough, my best bet to understand what's going on is... here (http://www.vaikene.net/planeshift/api/progressionmanager_8cpp.html) and there (http://www.vaikene.net/planeshift/api/progressionmanager_8h.html)
-
I am wondering, where are the events found in the progress_events.sql file from the database processed? Is there some kind of list of possible parameters somewhere?
These are mostly scripts that are run based on various events that happen in game. For example, when you equip a speical ring it might have an event scripted to it ( something like gives faction to orcs ). So in the item_stats table this item is given the event "equip_ring_faction". And inside the progression_events table there is:
"equip_ring_faction", "<evt><faction name="orcs" value="100"/></evt>"
So when you equip the right it does an event with the faction operation to increase it by 100. When you remove the right it does the same event but in reverse. Events can be simple operations like this or complex ones that do calculations and can take parameters.