PDA

View Full Version : Research Order Script



Metal Gear Rex
January 11th, 2010, 08:15
Just thought I post this because it is a hastle to have to do this every time...

I put it here for obvious reasons, but if it does not belong then Moderators feel free to move it.

If I accidentally put any of the values wrong, do not hesitate to say so.

Red Keeper

RESEARCH_ORDER(PLAYER0,MAGIC,POWER_IMP,1000)
RESEARCH_ORDER(PLAYER0,ROOM,TREASURE,1000)
RESEARCH_ORDER(PLAYER0,ROOM,LAIR,1000)
RESEARCH_ORDER(PLAYER0,ROOM,GARDEN,1000)
RESEARCH_ORDER(PLAYER0,ROOM,TRAINING,1000)
RESEARCH_ORDER(PLAYER0,ROOM,RESEARCH,1000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_SIGHT,3800)
RESEARCH_ORDER(PLAYER0,ROOM,BRIDGE,4600)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_SPEED,5700)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_OBEY,6000)
RESEARCH_ORDER(PLAYER0,ROOM,GUARD_POST,6700)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_CALL_TO_ARMS,74 00)
RESEARCH_ORDER(PLAYER0,ROOM,WORKSHOP,9000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_CONCEAL,9400)
RESEARCH_ORDER(PLAYER0,ROOM,BARRACKS,12000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_HOLD_AUDIENCE,1 1000)
RESEARCH_ORDER(PLAYER0,ROOM,PRISON,20000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_CAVE_IN,25000)
RESEARCH_ORDER(PLAYER0,ROOM,TORTURE,20000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_HEAL_CREATURE,1 4000)
RESEARCH_ORDER(PLAYER0,ROOM,TEMPLE,25000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_LIGHTNING,15000 )
RESEARCH_ORDER(PLAYER0,ROOM,GRAVEYARD,25000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_PROTECT,15000)
RESEARCH_ORDER(PLAYER0,ROOM,SCAVENGER,27500)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_CHICKEN,20000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_DISEASE,20000)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_ARMAGEDDON,1000 00)
RESEARCH_ORDER(PLAYER0,MAGIC,POWER_DESTROY_WALLS,7 50000)

Blue Keeper

RESEARCH_ORDER(PLAYER1,MAGIC,POWER_IMP,1000)
RESEARCH_ORDER(PLAYER1,ROOM,TREASURE,1000)
RESEARCH_ORDER(PLAYER1,ROOM,LAIR,1000)
RESEARCH_ORDER(PLAYER1,ROOM,GARDEN,1000)
RESEARCH_ORDER(PLAYER1,ROOM,TRAINING,1000)
RESEARCH_ORDER(PLAYER1,ROOM,RESEARCH,1000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_SIGHT,3800)
RESEARCH_ORDER(PLAYER1,ROOM,BRIDGE,4600)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_SPEED,5700)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_OBEY,6000)
RESEARCH_ORDER(PLAYER1,ROOM,GUARD_POST,6700)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_CALL_TO_ARMS,74 00)
RESEARCH_ORDER(PLAYER1,ROOM,WORKSHOP,9000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_CONCEAL,9400)
RESEARCH_ORDER(PLAYER1,ROOM,BARRACKS,12000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_HOLD_AUDIENCE,1 1000)
RESEARCH_ORDER(PLAYER1,ROOM,PRISON,20000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_CAVE_IN,25000)
RESEARCH_ORDER(PLAYER1,ROOM,TORTURE,20000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_HEAL_CREATURE,1 4000)
RESEARCH_ORDER(PLAYER1,ROOM,TEMPLE,25000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_LIGHTNING,15000 )
RESEARCH_ORDER(PLAYER1,ROOM,GRAVEYARD,25000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_PROTECT,15000)
RESEARCH_ORDER(PLAYER1,ROOM,SCAVENGER,27500)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_CHICKEN,20000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_DISEASE,20000)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_ARMAGEDDON,1000 00)
RESEARCH_ORDER(PLAYER1,MAGIC,POWER_DESTROY_WALLS,7 50000)

Green Keeper

RESEARCH_ORDER(PLAYER2,MAGIC,POWER_IMP,1000)
RESEARCH_ORDER(PLAYER2,ROOM,TREASURE,1000)
RESEARCH_ORDER(PLAYER2,ROOM,LAIR,1000)
RESEARCH_ORDER(PLAYER2,ROOM,GARDEN,1000)
RESEARCH_ORDER(PLAYER2,ROOM,TRAINING,1000)
RESEARCH_ORDER(PLAYER2,ROOM,RESEARCH,1000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_SIGHT,3800)
RESEARCH_ORDER(PLAYER2,ROOM,BRIDGE,4600)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_SPEED,5700)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_OBEY,6000)
RESEARCH_ORDER(PLAYER2,ROOM,GUARD_POST,6700)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_CALL_TO_ARMS,74 00)
RESEARCH_ORDER(PLAYER2,ROOM,WORKSHOP,9000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_CONCEAL,9400)
RESEARCH_ORDER(PLAYER2,ROOM,BARRACKS,12000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_HOLD_AUDIENCE,1 1000)
RESEARCH_ORDER(PLAYER2,ROOM,PRISON,20000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_CAVE_IN,25000)
RESEARCH_ORDER(PLAYER2,ROOM,TORTURE,20000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_HEAL_CREATURE,1 4000)
RESEARCH_ORDER(PLAYER2,ROOM,TEMPLE,25000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_LIGHTNING,15000 )
RESEARCH_ORDER(PLAYER2,ROOM,GRAVEYARD,25000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_PROTECT,15000)
RESEARCH_ORDER(PLAYER2,ROOM,SCAVENGER,27500)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_CHICKEN,20000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_DISEASE,20000)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_ARMAGEDDON,1000 00)
RESEARCH_ORDER(PLAYER2,MAGIC,POWER_DESTROY_WALLS,7 50000)

Yellow Keeper

RESEARCH_ORDER(PLAYER3,MAGIC,POWER_IMP,1000)
RESEARCH_ORDER(PLAYER3,ROOM,TREASURE,1000)
RESEARCH_ORDER(PLAYER3,ROOM,LAIR,1000)
RESEARCH_ORDER(PLAYER3,ROOM,GARDEN,1000)
RESEARCH_ORDER(PLAYER3,ROOM,TRAINING,1000)
RESEARCH_ORDER(PLAYER3,ROOM,RESEARCH,1000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_SIGHT,3800)
RESEARCH_ORDER(PLAYER3,ROOM,BRIDGE,4600)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_SPEED,5700)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_OBEY,6000)
RESEARCH_ORDER(PLAYER3,ROOM,GUARD_POST,6700)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_CALL_TO_ARMS,74 00)
RESEARCH_ORDER(PLAYER3,ROOM,WORKSHOP,9000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_CONCEAL,9400)
RESEARCH_ORDER(PLAYER3,ROOM,BARRACKS,12000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_HOLD_AUDIENCE,1 1000)
RESEARCH_ORDER(PLAYER3,ROOM,PRISON,20000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_CAVE_IN,25000)
RESEARCH_ORDER(PLAYER3,ROOM,TORTURE,20000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_HEAL_CREATURE,1 4000)
RESEARCH_ORDER(PLAYER3,ROOM,TEMPLE,25000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_LIGHTNING,15000 )
RESEARCH_ORDER(PLAYER3,ROOM,GRAVEYARD,25000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_PROTECT,15000)
RESEARCH_ORDER(PLAYER3,ROOM,SCAVENGER,27500)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_CHICKEN,20000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_DISEASE,20000)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_ARMAGEDDON,1000 00)
RESEARCH_ORDER(PLAYER3,MAGIC,POWER_DESTROY_WALLS,7 50000)

All Players

RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_IMP,1000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,TREASURE,1000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,LAIR,1000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,GARDEN,1000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,TRAINING,1000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,RESEARCH,1000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_SIGHT,3800)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,BRIDGE,4600)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_SPEED,5700)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_OBEY,6000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,GUARD_POST,6700)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_CALL_TO_ARM S,7400)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,WORKSHOP,9000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_CONCEAL,940 0)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,BARRACKS,12000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_HOLD_AUDIEN CE,11000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,PRISON,20000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_CAVE_IN,250 00)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,TORTURE,20000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_HEAL_CREATU RE,14000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,TEMPLE,25000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_LIGHTNING,1 5000)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,GRAVEYARD,25000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_PROTECT,150 00)
RESEARCH_ORDER(ALL_PLAYERS,ROOM,SCAVENGER,27500)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_CHICKEN,200 00)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_DISEASE,200 00)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_ARMAGEDDON, 100000)
RESEARCH_ORDER(ALL_PLAYERS,MAGIC,POWER_DESTROY_WAL LS,750000)

DragonsLover
January 11th, 2010, 20:09
I did some modifications about the amount of research points for some spells in my unofficial patch. Should I modify the numbers?

Metal Gear Rex
January 11th, 2010, 20:20
Sure, if you want. I did take these from the original DK though.

dragonfist
November 5th, 2010, 08:04
The numbers stand for the research time, not the research order.
The research order seems to be correct.

Thanks Metal, because in order to script on research, the numbers should be added, where the research number tells what is being researched at the moment. I once made a script with these numbers and research order. Adding them manually one by one. Dungeon Keeper can not read spells from an IF(*,*) command, that is why I did it that way. But you can script spell or room availability also with the IF_AVAILABLE(*,*) command.

Attached a level I made last week, that is part in the campaign I am working on, where the IF_AVAILABLE command was used.

You can play that level, if you like, but the campaign isn't finished yet.
I have 2 more levels ready now. You'll have to be patient, if you want to play all the levels.
I can't make more than 2 levels a week.
There might be added some DISPLAY_INFORMATION's on the uploaded level later, but it is ready to be play(test)ed.

Mothrayas
November 5th, 2010, 18:15
The numbers stand for the research time, not the research order.
The research order seems to be correct.
Duh?


Thanks Metal, because in order to script on research, the numbers should be added, where the research number tells what is being researched at the moment. I once made a script with these numbers and research order. Adding them manually one by one. Dungeon Keeper can not read spells from an IF(*,*) command, that is why I did it that way.
Care to elaborate? Your post does not at all make it obvious what/how exactly you are scripting that.


But you can script spell or room availability also with the IF_AVAILABLE(*,*) command.
Double duh?


Attached a level I made last week, that is part in the campaign I am working on, where the IF_AVAILABLE command was used.

You can play that level, if you like, but the campaign isn't finished yet.
I have 2 more levels ready now. You'll have to be patient, if you want to play all the levels.
I can't make more than 2 levels a week.
There might be added some DISPLAY_INFORMATION's on the uploaded level later, but it is ready to be play(test)ed.
Yay for offtopic advertising of your maps?