PDA

View Full Version : Creature Count Restrictions?



Randy19
April 30th, 2012, 14:29
Hey everyone.

I am making a map. I already did some before and(if i may say so) they aren't too bad. Anyway. I have one problem. Is there a way to script that a player can only have soandso many creatures of the same type? Like if i add 4 Dragons to the pool, is there a way to say that every Player may only get or have 1, so that the other 3 Dragons are left for the other 3 Players so that everyone only gets 1 Dragon?

Thank you in advance!

Metal Gear Rex
April 30th, 2012, 14:33
Hey everyone.

I am making a map. I already did some before and(if i may say so) they aren't too bad. Anyway. I have one problem. Is there a way to script that a player can only have soandso many creatures of the same type? Like if i add 4 Dragons to the pool, is there a way to say that every Player may only get or have 1, so that the other 3 Dragons are left for the other 3 Players so that everyone only gets 1 Dragon?

Thank you in advance!

If you want to restrict a Creature Type for a certain Keeper, then try something like this.


IF(PLAYER#,CREATURE<=#)
NEXT_COMMAND_REUSABLE
CREATURE_AVAILABLE(PLAYER#,CREATURE,1,1)
ENDIF

IF(PLAYER#,CREATURE>=#)
NEXT_COMMAND_REUSABLE
CREATURE_AVAILABLE(PLAYER#,CREATURE,0,0)
ENDIF

That should do it.

Randy19
April 30th, 2012, 16:53
Cool thanks! But there is one more thing i want. Is there a way to manipulate how creatures come into your dungeon? I think creatures like the Reaper or the Avatar don't come out of pools even if you add them since there is nothing that lures them in. Is there a way to change that without having to mod the game itself?

EDIT: I mean the Good Keeper Campaign in FX let's you lure Heroes trough your portal. I don't think Heros have preset rooms that lure them? Yet it works. How is that done?

Metal Gear Rex
April 30th, 2012, 20:04
Cool thanks! But there is one more thing i want. Is there a way to manipulate how creatures come into your dungeon? I think creatures like the Reaper or the Avatar don't come out of pools even if you add them since there is nothing that lures them in. Is there a way to change that without having to mod the game itself?

EDIT: I mean the Good Keeper Campaign in FX let's you lure Heroes trough your portal. I don't think Heros have preset rooms that lure them? Yet it works. How is that done?

The Horned Reaper does have Room Requirements, actually. He requires 9 tiles of the Temple. The Avatar has no Room Requirements like all Heroes, yes. However, Creatures with no set Room Requirement can be obtained regardless. Similar to the Fly, who has no Room Requirement.

Anyways, I know what Hero Campaign you're talking about. It was made by Lquiz, yes? This is what he did:


IF(PLAYER#,ROOM>=1)
NEXT_COMMAND_REUSABLE
CREATURE_AVAILABLE(PLAYER#,CREATURE,1,1)
ENDIF

IF(PLAYER#,ROOM<1)
NEXT_COMMAND_REUSABLE
CREATURE_AVAILABLE(PLAYER#,CREATURE,0,0)
ENDIF

(actually I noticed a severe flaw in the maps that I checked in that he didn't use the next command reusable for making a creature available but did it for making them unavailable)

Randy19
April 30th, 2012, 22:18
Awesome thanks! That helps a lot