2011-12-26 7 views
2

私は繁殖選手の2つのエージェントを作成しています。NetLogo - モニタするカメの値を表示

breed [players player] 

選手はので、私は2人のプレーヤーを作成し、属性の値を設定している選手、自身

players-own 
[ 
    lives 
    health 
    score 
] 

を使用している特定の属性を持っている必要があります。

create-players 2 

    ask player 0 
    [ 
    set lives 3 
    set health 100 
    set score 0 
    ] 

    ask player 1 
    [ 
    set lives 5 
    set health 100 
    set score 0 

    ] 

私は仕事に苦労しています一部は、私は1つのモニタでプレイヤー0の命の価値と別のモニタでプレイヤー1の生活の値を表示する方法です。

この上の任意の助けもいただければ幸いです:)

答えて

6

は1台のモニタにこのコードを入れてください:

[lives] of player 0 

と別でこのコード:

[lives] of player 1 
関連する問題