5,389
edits
Line 107: | Line 107: | ||
To recap, it should look like this : | To recap, it should look like this : | ||
func void main(void){ | |||
chr_teleport 0 7010 | |||
{ | } | ||
chr_teleport 0 7010 | After the function call <tt>chr_teleport 0 7010</tt>, add the following 2 commands on separate lines: <tt>ai2_spawn Top_Striker_1</tt> and <tt>ai2_spawn Top_Comguy_1</tt>. These two commands tell the game to create 2 characters: '''Top_Striker_1''', and '''Top_Comguy_1'''. | ||
} | |||
After the function call <tt>chr_teleport 0 7010</tt>, add the following 2 commands on separate lines: <tt>ai2_spawn | |||
Since that these characters do not spawn in the room, they must be teleported there. Using the <tt>chr_teleport</tt> command used earlier to teleport yourself, modify it to teleport the 2 AI using their names instead of "0". Teleport them to the flags "7008" and "7009" respectively. Refer to the example above or the list of function calls above to write this in. | Since that these characters do not spawn in the room, they must be teleported there. Using the <tt>chr_teleport</tt> command used earlier to teleport yourself, modify it to teleport the 2 AI using their names instead of "0". Teleport them to the flags "7008" and "7009" respectively. Refer to the example above or the list of function calls above to write this in. | ||
It should now look like this : | It should now look like this : | ||
func void main(void) { | |||
chr_teleport 0 7010 | |||
{ | ai2_spawn Top_Striker_1 | ||
chr_teleport 0 7010 | ai2_spawn Top_Comguy_1 | ||
ai2_spawn | chr_teleport Top_Striker_1 7008 | ||
ai2_spawn | chr_teleport Top_Comguy_1 7009 | ||
chr_teleport | } | ||
chr_teleport | |||
} | |||
This script will now teleport you into the final training room and face you off against 2 Strikers. | This script will now teleport you into the final training room and face you off against 2 Strikers. | ||