赞 | 16 |
VIP | 63 |
好人卡 | 13 |
积分 | 44 |
经验 | 33364 |
最后登录 | 2024-11-13 |
在线时间 | 1910 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 4397
- 在线时间
- 1910 小时
- 注册时间
- 2010-12-21
- 帖子
- 2365
|
话说……
- $n = ["士兵:","魔法师:","佣兵:","海员:","市民:","神官:","旅行家:","商人:","流浪者:",
- "作家:","乞丐:","贵族:","罪犯:","学者:","艺术家:","厨师:","医生:","骑士:","学徒:"]
复制代码- $a = ["最近真是有点热啊,","今天天气真好哦,", "无聊死了哟,","我喜欢吃巧克力,","钓鱼很好玩,",
- "你要做我的朋友吗?","我真的很想完成这个任务,","我刚刚遇到一个奇怪的人,","我不喜欢外来者!",
- "据说公海上有大风暴,","听说某个岛屿存在宝藏,","很想吃水果,","真高兴啊,","生活真艰难啊~",
- "很难形容现在岛上的情况,","你知道么岛主是我亲戚,","海盗们真讨厌!","吃得好饱!","好痛苦,",
- "跟你我无话可说,","我们这儿不欢迎你","我第一眼就喜欢你,","去酒馆喝一杯?","你是来干什么的?"]
复制代码- $b = ["是不是这样啊?","难道不是这样的吗?","可惜没有时间了。", "可是我没钱了啊。","真的不行么",
- "你觉得呢?","你呢?","既然这样,一起来吧!","我要呆在家里。","谁能帮帮我啊?","跟你开玩笑啦!",
- "可是岛主说不可以这样。","希望如此吧!","我的想法很天真吧~","真没办法!","无论如何与我无关。",
- "奇怪不?","感人至深啊!","真叫人无语啊。","我真可怜。","就算这样也不坏。","无所谓了。"]
复制代码
- $game_message.texts.push($n[rand(19)] + $a[rand(24)] + $b[rand(22)])
复制代码
用全局变量的话,到哪都能用
相对于局部变量我个人没事就用一堆全局变量 = =
|
|