Netlogo 如何更新';我自己';块内的变量

Netlogo 如何更新';我自己';块内的变量,netlogo,Netlogo,在netlogo 5.3.1中,假设: marketmakers-tier1-own [ trading-capital ] 我想这样做: ask other marketmakers-tier1 [ let T-capital [ trading-capital ] of myself let T-cost some-amount ;; do some stuff ; now update myself's trading-capital set [ trading-

在netlogo 5.3.1中,假设:

marketmakers-tier1-own [ trading-capital ]
我想这样做:

ask other marketmakers-tier1 [
  let T-capital [ trading-capital ] of myself
  let T-cost some-amount

  ;; do some stuff

  ; now update myself's trading-capital
  set [ trading-capital ] of myself ( T-capital - T-cost )
]
set命令上产生此错误:

这不是你可以用“设置”的东西


任何建议我都会很感激。

只要
问问我自己[设置交易资本…]
但我怀疑你是否真的想要这个特定的程序逻辑。啊!!简单。非常感谢。事实上,这个构造可能不是最优的,但这是第一次尝试。谢谢你@Alan!!只要问我自己[设置交易资金…][/code>,但我怀疑你是否真的想要这个特定的程序逻辑。啊!!简单。非常感谢。事实上,这个构造可能不是最优的,但这是第一次尝试。谢谢你@Alan!!