赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 4 |
经验 | 0 |
最后登录 | 2024-11-21 |
在线时间 | 65 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 449
- 在线时间
- 65 小时
- 注册时间
- 2022-10-6
- 帖子
- 5
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
想要这种完成任务后显示已完成,和多流程任务的范例,跪求大佬们帮帮萌新
工程 链接:https://pan.baidu.com/s/1wMaeveIHHSZImcjdQMlpmw?pwd=biqg
提取码:biqg
--来自百度网盘超级会员V6的分享
- =begin
- 任务系统
- #=========
- 使用方法
- 事件脚本里写入
- $game_party.add_task(任务id) - 增添任务
- $game_party.remove_task(任务id) - 删除任务
- $game_party.ok_task_lc(任务id,流程id) - 流程完成
- =end
- #encoding:utf-8
- ###############################################################################
- #任务数据库设置
- ###############################################################################
- module RPG
- class Task
- attr_accessor :id
- attr_accessor :name
- attr_accessor :introduction
- attr_accessor :process
- attr_accessor :ok
- attr_accessor :process_ok
- def initialise
- @id = 0
- @name = ""
- @introduction = ""
- @process = []
- @ok = false
- @process_ok = []
- end
- end
- def self.get_task_data
- data = [nil]
- #======================#
- task = Task.new
- task.id = 1
- task.name = "篇章<1>"
- task.introduction =
- "初识赏金猎人-红狼!"
- task.process = [""]
- task.process_ok = [false]
- data[1] = task
- #======================#
- task = Task.new
- task.id = 2
- task.name = "篇章<2>"
- task.introduction =
- "旅程中第一辆战车!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[2] = task
- #======================#
- task = Task.new
- task.id = 3
- task.name = "篇章<3>"
- task.introduction =
- "旅程中第一个伙伴!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[3] = task
- #======================#
- task = Task.new
- task.id = 4
- task.name = "篇章<4>"
- task.introduction =
- "战胜巨炮阵地的巨型炮!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[4] = task
- #======================#
- task = Task.new
- task.id = 5
- task.name = "篇章<5>"
- task.introduction =
- "旅程中第二个伙伴!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[5] = task
- #======================#
- task = Task.new
- task.id = 6
- task.name = "篇章<6>"
- task.introduction =
- "打败了瓦鲁!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[6] = task
- #======================#
- task = Task.new
- task.id = 7
- task.name = "篇章<7>"
- task.introduction =
- "如果遇见一个叫妮娜的
- 女人的话就跟她说红狼
- 已经忘掉从前的恋人了!
- 永别了!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[7] = task
- #======================#
- task = Task.new
- task.id = 8
- task.name = "篇章<8>"
- task.introduction =
- "旅程中第三个伙伴!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[8] = task
- #======================#
- task = Task.new
- task.id = 9
- task.name = "篇章<9>"
- task.introduction =
- "打败了猎人的噩梦
- ‘沙漠之舟’!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[9] = task
- #======================#
- task = Task.new
- task.id = 10
- task.name = "篇章<10>"
- task.introduction =
- "勇闯地狱门!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[10] = task
- #======================#
- task = Task.new
- task.id = 11
- task.name = "篇章<11>"
- task.introduction =
- "红狼,来生有缘一定
- 要过上幸福的生活!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[11] = task
- #======================#
- task = Task.new
- task.id = 12
- task.name = "篇章<12>"
- task.introduction =
- "打败了终端‘诺亚系统’!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[12] = task
- #======================#
- task = Task.new
- task.id = 13
- task.name = "篇章<特殊1>"
- task.introduction =
- "当夜色之中血色的风暴
- 悄悄来临,腥红的花朵
- 才悄然绽放。是厄运的
- 征兆?还是血色梅卡瓦
- 的来临? 她无数个夜晚
- 都在等待着这个时刻,
- 等来的却是他的噩耗!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[13] = task
- #======================#
- task = Task.new
- task.id = 14
- task.name = "篇章<特殊2>"
- task.introduction =
- "应该亲眼去看看这个荒
- 废破旧的世界,在周游
- 世界的旅途上你到过多
- 远地方,邂逅了多少的
- 陌生人,这两者决定了
- 你人生的价值。!"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[14] = task
- #======================#
- task = Task.new
- task.id = 15
- task.name = "篇章<特殊3>"
- task.introduction =
- "面临人类随时可能彻底
- 灭亡的命运,人类三大
- 博士定制了强化人类的
- 计划,计划名为‘E计划’"
- task.process = [""]
- task.process_ok = [false,false,false,false]
- data[15] = task
- #======================#
- return data
- end
- end
复制代码 |
|