LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 3150|回复: 0

[综合] LUA小白求助!

[复制链接]
发表于 2019-3-12 21:53:37 | 显示全部楼层 |阅读模式
local ReqAzerExp={
3000,
3500,
4000,
4500,
5000,
6500,
6600,
6700,
6800,
6900,
7000,
7100,
7200,
7300,
7400,
8000,
9000,
10000,
11000};
            if ( self.currentLevel >= 1 and self.currentLevel<#ReqAzerExp)  then
                local pra_Exp = ReqAzerExp[self.currentLevel] ;



这其中的  local ReqAzerExp={ 里面的数值 和 self.currentLevel >= 1 我想在当前目录 exp.txt 读取要怎么写,求教!!!


其中 exp.txt 分为2个字段,一个level 一个 exp 文本内容如下

Level        Exp
1        3000
2        3500
3        4000
4        4500
5        5000
6        5500
7        6000
8        6500
9        7000
10        1000


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-4-26 05:55 PM , Processed in 0.033272 second(s), 14 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表