summaryrefslogtreecommitdiff
path: root/src/map/script-parse.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-06-18 23:41:58 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:45:05 -0400
commit98e5e62ef7a04977146fdbfbc3166dad5d082da0 (patch)
treef0ff9a10b07439786994887e406519bc86860a16 /src/map/script-parse.cpp
parentef4ae4d281127a0b84a73ab034bd22d6281a09ed (diff)
downloadtmwa-98e5e62ef7a04977146fdbfbc3166dad5d082da0.tar.gz
tmwa-98e5e62ef7a04977146fdbfbc3166dad5d082da0.tar.bz2
tmwa-98e5e62ef7a04977146fdbfbc3166dad5d082da0.tar.xz
tmwa-98e5e62ef7a04977146fdbfbc3166dad5d082da0.zip
add scope, npc/mob variables; add new get/set
Diffstat (limited to 'src/map/script-parse.cpp')
-rw-r--r--src/map/script-parse.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/script-parse.cpp b/src/map/script-parse.cpp
index a785748..a69df40 100644
--- a/src/map/script-parse.cpp
+++ b/src/map/script-parse.cpp
@@ -283,6 +283,10 @@ ZString::iterator skip_word(ZString::iterator p)
p++; // MAP鯖内共有変数用
if (*p == '@')
p++; // 一時的変数用(like weiss)
+ if (*p == '.')
+ p++; // npc
+ if (*p == '@')
+ p++; // scope
if (*p == '#')
p++; // account変数用
if (*p == '#')
@@ -623,6 +627,7 @@ ZString::iterator ScriptBuffer::parse_line(ZString::iterator p, bool *can_step)
"end"_s,
"mapexit"_s,
"shop"_s,
+ "destroy"_s,
};
*can_step = terminators.count(cmd->strs) == 0;
}