主题: about #forall
查看单个帖子
旧 2003-07-18   #1
Anglo
正式会员
级别:0 | 在线时长:0小时 | 升级还需:5小时
 
Anglo 的头像
 
注册: 03年07月15日
帖子: 3
声望力: 0
声望: 10 Anglo 闻道则喜
现金:0两梁山币
资产:0两梁山币
致谢数: 0
获感谢文章数:0
获会员感谢数:0
Question about #FORALL

Here I want to ask a question with a loop command.

When I make auto-quests robot, I have set a trigger to catch what quests can be bought in hockshop.
such as:
"$N对$n说道:正好正好,妾身占签得知$w现急需$o。\
"$N对$n点头说道:相公刚说了,让妾身征集什么",
"$N想了一下,对$n说道:老夫听说军务处想要 blah blah
I catched 3 variables : Q_give,Q_armor,Q_weapon
and judged them as buyable with my DB.
Then I use #ADDITEM to creat a variable @Q_buy={@Q_give|@Q_armor|@Q_weapon}
such as {大板斧|金环锁子甲|青锋剑}

Then I go to the hockshop to buy them.
#FORALL @Q_buy {buy %i}
#TRIGGER {你从当铺买到了一*} {#DELITEM @Q_buy %1}

However, you know, buy something from hockshop make a little busy, that I can not buy 3 things in one time.
How can I insert the #wa 2000 into the loop? or use other command, then what?
Waiting for your kindly suggestion.Thank you all.

此帖于 2003-07-18 15:27 被 Anglo 编辑.
Anglo 当前离线  
回复时引用此帖