Results 1 to 6 of 6

Thread: Two Questions

  
  1. #1
    Imp
    Join Date
    Nov 2009
    Location
    graveyard
    Posts
    2

    Default Two Questions

    Hi, I'm new to the forum, I already registered.
    I have a couple of questions about mapmaking:

    1) How can I change the primary job of a creature?
    the command of the type:
    "SET_CREATURE_PRIMARY_JOB(ORC,16)" doesn't seem to work.

    2) I have a problem (in both Unded which I used in the past and Adikted which I use now) in creating hero parties.
    While most of the parties that I set to be created, appear in the level, some of the them just don't. Does anyone know why this happens?
    This can happen in many cases, but mostly when I set the party to appear when an action point is triggered.
    For example:

    CREATE_PARTY(EIGTEEN)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,4,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,4,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)


    IF_ACTION_POINT(17,PLAYER0)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,EIGTEEN,18,1)
    ENDIF

    I have to note that I didn't use more than 48 of such commands.

    Thanx in advance.

  2. #2
    Dungeon Keeper
    Join Date
    Aug 2009
    Location
    The Netherlands
    Posts
    1,010
    Gamer IDs

    Gamertag: Lucien 046 Steam ID: Duke_Ragereaver

    Default Re: Two Questions

    Quote Originally Posted by Soul Eraser View Post
    Hi, I'm new to the forum, I already registered.
    I have a couple of questions about mapmaking:

    1) How can I change the primary job of a creature?
    the command of the type:
    "SET_CREATURE_PRIMARY_JOB(ORC,16)" doesn't seem to work.
    Do you mean you want to change the creature only in that level you are working or in general? The latter can be done in creature editors.

    2) I have a problem (in both Unded which I used in the past and Adikted which I use now) in creating hero parties.
    While most of the parties that I set to be created, appear in the level, some of the them just don't. Does anyone know why this happens?
    This can happen in many cases, but mostly when I set the party to appear when an action point is triggered.
    For example:

    CREATE_PARTY(EIGTEEN)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,4,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,4,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)


    IF_ACTION_POINT(17,PLAYER0)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,EIGTEEN,18,1)
    ENDIF

    I have to note that I didn't use more than 48 of such commands.

    Thanx in advance.
    Did you updated and verrified the script when using Adikted? This can be done using first CTRL + T and then use U and V. Adikted will inform you of any errors in the script.

    Ps: Welcome, hope to see new maps around here!
    Last edited by Duke Ragereaver; November 29th, 2009 at 12:58.


    Dungeon Keeper I campaign: Undead Keeper
    Download it here!

    Dungeon Keeper I campaign: Post Undead Keeper
    Download it here!

  3. #3

    Default Re: Two Questions

    How big is action point 17?
    Dungeon Keeper 1 Patch: Sexier Beetles and Reaper Control [Currently on Hold]
    I like how HR is. Nearly Done with Quick Creature Revision. Playtesting through Deeper Dungeons - Thread/Level Revision on Hold
    Batezek can go to hell. Never playtesting there again.

    Dungeon Keeper 2 Patch: With More Balance and Pie [Updated: 5/18/12]
    Playtesting while Remaking Official Campaign.
    Screw the Change Log. Changes are so Drastic that it isn't relevant anymore.

    The Awakening: GM Powers Activate!
    Working on Secret Crystice x Emmra Story as Fanservice for Mothrayas

    Fun DK1 Fact:
    1 Armor = 0.390625% Damage Absorption
    5 Armor = 1.953125% Damage Absorption

    LOL, RAGEGUN, DRAGONFIST, LLW9, IMM0RAL, LQUIZ

  4. #4
    Imp
    Join Date
    Nov 2009
    Location
    graveyard
    Posts
    2

    Default Re: Two Questions

    Quote Originally Posted by Metal Gear Rex View Post
    How big is action point 17?
    You mean if the area containing this Action Point is wide enough for the hero party? It is, other parties could emerge from there.

    It is as if the computer decides which parties will appear and which not.

    There was another case where I used this:
    IF(PLAYER0,TOTAL_CREATURES == 25)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,NINE,9,1)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,TEN,10,1)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,NINTEEN,19,1)

    ENDIF

    and no party appeared (I have to test it once more though) while other parties did come this way.


    Duke Ragereaver, I want to change the primary job of the creature only in specific levels, along with other characteristics of them (like annoyment, base speed etc)

  5. #5
    Dark God DragonsLover's Avatar
    Join Date
    Aug 2009
    Location
    Quebec
    Posts
    1,073

    Default Re: Two Questions

    Quote Originally Posted by Soul Eraser
    1) How can I change the primary job of a creature?
    the command of the type:
    "SET_CREATURE_PRIMARY_JOB(ORC,16)" doesn't seem to work.
    SET_CREATURE_PRIMARY_JOB isn't a command that exists (unless perhaps in KeeperFX). You must change the value in creature.txt/dd1creat.txt and distribute the files along with your level.

    Quote Originally Posted by Soul Eraser
    2) I have a problem (in both Unded which I used in the past and Adikted which I use now) in creating hero parties.
    While most of the parties that I set to be created, appear in the level, some of the them just don't. Does anyone know why this happens?
    This can happen in many cases, but mostly when I set the party to appear when an action point is triggered.
    For example:

    CREATE_PARTY(EIGTEEN)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,4,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,4,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)
    ADD_TO_PARTY(EIGTEEN,BARBARIAN,3,100,ATTACK_ENEMIE S,0)


    IF_ACTION_POINT(17,PLAYER0)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,EIGTEEN,18,1)
    ENDIF
    First, avoid Unded as your map is much likely to have some bugs and crash the game.

    Second, there's a space in "ATTACK_ENEMIES" between the E and the S on each line. Try to fix that. Then, check about the size of the triggering action point (number 17) if it is big enough to be sure that a creature enters and stays for enough of time in the action point area. It may happens that the game doesn't trigger an action point "straight", it requires for the creature to stay a little period in the area.

    Quote Originally Posted by Soul Eraser
    There was another case where I used this:
    IF(PLAYER0,TOTAL_CREATURES == 25)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,NINE,9,1)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,TEN,10,1)
    ADD_PARTY_TO_LEVEL(PLAYER_GOOD,NINTEEN,19,1)

    ENDIF

    and no party appeared (I have to test it once more though) while other parties did come this way.
    Use >= instead of == preferably.

    Also, I hope that you don't have 19 parties as only a maximum of 16 parties is allowed in a level.
    I like dragons! They're the center of my life! I'll never forget them...



  6. #6

    Default Re: Two Questions

    My god, I feel like an idiot... how could I have not noticed it sooner!

    The Party isn't being reconized because you put "ATTACK_ENEMIE" and forgot the S at the end.
    Dungeon Keeper 1 Patch: Sexier Beetles and Reaper Control [Currently on Hold]
    I like how HR is. Nearly Done with Quick Creature Revision. Playtesting through Deeper Dungeons - Thread/Level Revision on Hold
    Batezek can go to hell. Never playtesting there again.

    Dungeon Keeper 2 Patch: With More Balance and Pie [Updated: 5/18/12]
    Playtesting while Remaking Official Campaign.
    Screw the Change Log. Changes are so Drastic that it isn't relevant anymore.

    The Awakening: GM Powers Activate!
    Working on Secret Crystice x Emmra Story as Fanservice for Mothrayas

    Fun DK1 Fact:
    1 Armor = 0.390625% Damage Absorption
    5 Armor = 1.953125% Damage Absorption

    LOL, RAGEGUN, DRAGONFIST, LLW9, IMM0RAL, LQUIZ

Similar Threads

  1. Frozengard Wastelands
    By Duke Ragereaver in forum Heavenarius
    Replies: 403
    Last Post: March 31st, 2012, 18:39
  2. Random stuff
    By dk2player in forum Silly
    Replies: 91
    Last Post: April 6th, 2010, 20:37

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •