Users browsing this thread: 1 Guest(s)
Help with an enemy's AI Script
03-15-2015, 12:24 PM
You will need to use conditional opcodes. I generally use the Magitek status as a flag for battle initialization. In ff6usme, I unset the Magitek status at the battle start up. Then, I set the “attack first” flag and set the script like this:
The traditional way is to use variable opcodes instead of status opcodes. However, you must consider that multiple monsters, present at battle, may conflict over the use of the used variables. In normal conditions, every monster in the formation should use only his own variable, to avoid conflict between its use.
You can find the list of conditional opcodes here.
Code:
If target self doesn't have Magitek status
Monster gains hidden status: Magitek
Lore: Quasar
End if
… continue normal script
The traditional way is to use variable opcodes instead of status opcodes. However, you must consider that multiple monsters, present at battle, may conflict over the use of the used variables. In normal conditions, every monster in the formation should use only his own variable, to avoid conflict between its use.
You can find the list of conditional opcodes here.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)