Spawn Problem

NatespaceNatespace Member Posts: 5
edited November -1 in Working with GS (Mac)
I am having an issue with spawned characters not spawning every time.
RULE:
When all valid; Attribute game.icanspawn is false
Then: Change Attribute: self.actorhead to random (1,5)
Change Attribute: self.actorbody to random (1,5)
RULE:
When all valid; self.actorhead = 1
Then: Spawn: actorhead1
RULE:
When all valid; self.actorhead = 2
Then: Spawn: actorhead2
etc.

RULE:
When all valid; self.actorbody = 1
Then: Spawn: actorbody1
RULE:
When all valid; self.actorbody = 2
Then: Spawn: actorbody2
etc.

Most times, the body and head show up. What is confusing is that sometimes it will just be the head and not the body or the reverse.

I put a display text in the object so I can see that it is generating the random numbers. It does, just sometimes it does not result in a spawn.

Could it be that the actual use for this is actually picking random number between 1 and 30 so there are just too many for it to go through? I limited the selection (1,5) as an experiment but it still sometimes errored.

Any suggestions?
Sign In or Register to comment.