Its in Dark Nation's AI to cast that spell. So basically you would have to use PrC or use hex editing
Yeah, but it's really not that hard, three~four easy steps:
Step 1: (kind of goes without saying, but) Find out the Attack ID of the player spell you want to use by looking it up in WallMarket: (in this case we're changing Dark Nation's Barrier --> Haste)
As we can see, the Attack ID for Haste is 19. Convert it to hex and we have 0x13.
Step 2: Goto Dark Nation's entry in Proud Clod, find Barrier (I renamed it to Protect in my mod, so just bear with me), and change the attack ID and name as shown: (the name isn't necessary since the game will pull it out of kernel.bin, but just for your own sake it's a good idea to change it too)
Step 3: This step is only necessary when you're adding a new attack. Click the Animations/Formations Button Highlighted in the image in Step 2, then choose the monster you want, then choose the new attack in an unused dropdown list and assign an animation (be careful not to choose an invalid animation, you can tell which animations do what based upon which are used for which attacks. It's not uncommon for monsters to only have 1 or 2 valid animations for attacks)
http://img393.imageshack.us/img393/498/39012795.jpgStep 4: Now we have to edit the AI a tad. Click the "Edit AI" button shown above and go to Dark Nation's Main Script (that's usually the only place you'll find an attack, unless it's used at the start of battle, or as a counter-attack, post-death, etc....). Usually, with few exceptions, you'll find an attack referenced like this (hex on the left, assembly on the right):
60 20 PUSH (20) Type (01)
60/61 [ATTACK ID] PUSH ([ATTACK ID]) Type ([01 for player spells/02 for enemy attacks])
92 ATTK
so in this case, we're looking to change:
60 20 PUSH (20) Type (01)
60 0F PUSH (0F) Type (01)
92 ATTK
into
60 20 PUSH (20) Type (01)
60 13 PUSH (13) Type (01)
92 ATTK
so just skim through the AI and change every instance you find. Once you think you've got em all, click the "Check Attacks" button to make sure: