Home   Help Search Login Register  

Author Topic: Condition of presence...  (Read 480 times)

0 Members and 1 Guest are viewing this topic.

Offline SEAL84

  • Members
  • *
  • Always lurking
Condition of presence...
« on: 26 Mar 2005, 07:18:37 »
Oookay, so I have a tank with a 50% probability of presence.  It starts empty, with the crew monkeying around nearby.  Now, if there's no tank obviously there's no need for a crew, so I assumed that a condition made true only if the tank appears could be used in the 'condition of presence' field of the crewmen.

So I stuck tankpresent = true in the init field of the tank, and used tankpresent as the condition of presence....no dice.  There seems to be no connection between the two.

I'd like to keep this as simple as possible (and I bet the solution is) but right now my brain is fried....somebody 'splain this please.


Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Condition of presence...
« Reply #1 on: 26 Mar 2005, 07:27:19 »
Set the probability of presence of the tank commander  to 50%.  Call him tank1Commander

in the condition of presence of each of the other crew members, and of the empty tank itself, set the condition of presence to:

alive tank1Commander

That way if the commader is created so are his crew members and the tank
« Last Edit: 26 Mar 2005, 07:29:32 by THobson »