此表用于定义游戏事件的前置条件,控制事件的激活顺序和依赖关系。
字段名 | 数据类型 | 默认值 | 说明 |
---|---|---|---|
eventEntry | INT UNSIGNED | 0 | 事件ID |
prerequisite_event | INT UNSIGNED | 0 | 前置事件ID |
当前事件的ID,必须对应game_event表中的有效事件。
必须完成的前置事件ID,必须对应game_event表中的有效事件。
场景:设置事件2必须在事件1完成后才能激活
INSERT INTO game_event_prerequisite
(eventEntry, prerequisite_event) VALUES
(2, 1); -- 事件2依赖于事件1