public override void start() { this.gameManager.scenarioManager.addIfStack(true); string exp = this.param ["exp"]; if (this.param.ContainsKey("mobile")) { } string result = ExpObject.calc(exp); //条件に合致した場合はそのままifの中へ if (result == "true") { //ifスタックが完了している this.gameManager.scenarioManager.changeIfStack(false); this.gameManager.nextOrder(); } else { //elsif か endif まで処理を進める StatusManager.setSkipOrder(); this.gameManager.nextOrder(); } }
public override void start() { string exp = this.param ["exp"]; ExpObject eo = new ExpObject(exp); StatusManager.variable.set(eo.type + "." + eo.name, eo.exp); this.gameManager.nextOrder(); }
public override void start() { string exp = this.param ["exp"]; ExpObject eo = new ExpObject (exp); string result = ExpObject.calc (eo.exp); StatusManager.variable.set(eo.type+"."+eo.name, result); this.gameManager.nextOrder (); }
//実行前にパラメータを解析して変数を格納する public void calcVariable() { Dictionary <string, string> tmp_param = new Dictionary <string, string> (); //タグに入れる foreach (KeyValuePair <string, string> pair in this.originalParam) { tmp_param[pair.Key] = ExpObject.replaceVariable(this.originalParam[pair.Key]); } //タグにデフォルト値を設定中かつ、tag が指定されていない場合 if (StatusManager.TagDefaultVal != "") { if (tmp_param.ContainsKey("tag") && tmp_param["tag"] == "") { tmp_param ["tag"] = StatusManager.TagDefaultVal; } } this.param = tmp_param; }