Miarmy Crowd Simulation Documentation (English)

Maya Attribute (Simulation)

We can add Maya attribute onto simulating agent, it is the same as the HP and MP, except you can define it dynamically with arbitrary name of it.

Such as, you can define a attribute called "morale" just use the decision sentence. After defining it, its initial value is 0 and it can be changed by sentence value.


Sentences (Output)

(Maya Attribute) set maya attribute:??? value ?? for example set maya attribute:morale value 5


Absolute Value Mode (Default)

The value of morale will be: decision node active * output value


The maya attribute adding



In the brain viewer, the morale is 3.05 = 0.61 * 5


Change Rate Mode (Need specify in default decision)

Firstly we need specify a default sentence in default decision. And specify the change speed to 0, that "0" means "not change" when there is no logic activate.


Setup change rate for maya attribute of agent


Then we just need specify the change value in the output sentence



The morale attribute will Increase 1.5 each frame


The input (Maya Attribute) simulation-time maya attribute:?? value sentence will get the attribute value of it


Return the value of morale

 

 

 

Basefount Technology