About giving creatures spells, this I do myself a lot in levels I make, but it's just a tick.
Because you can give spells to PLAYER_GOOD, by assigning him as computer player, give him some money, and you can let the heroes cast spells over all white creatures/"heroes"(just thieves!). Available than, are the spells that can be operated by the Computer Players, often referred to as AI. By switching these spells on and off, you can create the effect of spells being used by the Hero Creatures, that are not found in their profile or abilities.
Code is:
Code:
COMPUTER_PLAYER(PLAYER_GOOD,1)
START_MONEY(PLAYER_GOOD,9999999)
What kind of computer player you prefer, you will have to test it. 0 and 1 seem to work, others I have not tried. Not all spells are available. From these I know they become available;
Code:
MAGIC_AVAILABLE(PLAYER_GOOD,POWER_LIGHTNING,1,1)
MAGIC_AVAILABLE(PLAYER_GOOD,POWER_DISEASE,1,1)
MAGIC_AVAILABLE(PLAYER_GOOD,POWER_CALL_TO_ARMS,1,1)
MAGIC_AVAILABLE(PLAYER_GOOD,POWER_SIGHT,1,1)
BE CAREFUL, YOU WILL MESS UP YOUR MAP, IF YOU USE THEM IN THE WRONG WAY
For instance, the CALL_TO_ARMS does not switch off, and can give a white siren for over an hour. You must use IF commands, that are connected to things that happen in the Dungeon. You can switch the spells on and off, within 2 IF commands, as an example:
Code:
IF(PLAYER0, GAME_TURN > 1500)
MAGIC_AVAILABLE(PLAYER_GOOD,POWER_CALL_TO_ARMS,1,1)
ENDIF
IF(PLAYER0, GAME_TURN > 12500)
MAGIC_AVAILABLE(PLAYER_GOOD,POWER_CALL_TO_ARMS,1,0)
ENDIF
Maybe I should not learn you this, because it can mess up a level real bad. You should playtest it, before publishing. But with this trick, you can give all creatures the speed spell, and that is making the Avatar, the Knight, and others, very powerful. An extra spell. Disease spell is however only working on White tiles, and a Player_Good Keeper can not claim area, can not build anything, and so forth. But if you use the ALL_PLAYERS command, the spells given to the Dungeon keepers, will also be assigned to PLAYER_GOOD, and if PLAYER_GOOD has a White Dungeon Heart, it can produce imps, and these very fast digging imps will dig everything they find, more than ten times as fast as any tunneler.