Creating enemy routes of battle arenas with Wiimm's tools/code examples

From Custom Mario Kart
Jump to navigation Jump to search
Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

This page is part of the tutorial »Creating enemy routes of battle arenas with Wiimm's tools« and contains code examples for the KMP compiler of Wiimms SZS Tools.

The battle support of Wiimms SZS Tools is in development. At the moment there exists no public release of the tools that can handle the technics of this article. You have to wait for the release of v1.60a.


General Settings

If you create the text version of a KMP (for example by wkmpt cat old_CookieLand_gc), you get the following information in the heading part of section [ENPT]:

[ENPT]
....
# AUTO-CONENCT is one of the followinf AC$* symbols:
# For racing tracks and for battle areenas with manual links setup:
#   AC$OFF
#       Do not any auto connection. Route connection are fully unter control
#       of the user. This is the default for check points (CKPH).
#   AC$PREV
#       Setup PREV links by NEXT links of other routes. Existing PREV links
#       are cleared before. This is the default for enemy routes (ENPH).
#       This is the behavior of all versions before v1.60a.
#
# Modes for automatic route connection in battle arenas:
#   AC$DISPATCH
#       Find dispatch points and create links automatically if not already
#       set manually.
#
# Flags: The modes of above can be combined with the following options by
# the OR operator '|' (example: AC$PREV | ACF$FIX)
#   ACF$FIX_PREV
#       Add self-links, if a PREV list is empty.
#   ACF$FIX_NEXT
#       Add self-links, if a NEXT list is empty.
#   ACF$FIX
#       Abbreviation for: ACF$FIX_PREV | ACF$FIX_NEXT
#
@AUTO-CONNECT = AC$DISPATCH

The command @AUTO_CONNECT = selects a main mode for the automatic route connections. The classic definition is AC$PREV, which means, that only PREV links are created automatic by analyzing the NEXT links. This is the behavior of all versions before v1.60a.

Battle arenas, that use Dispatch Points, should use the setting AC$DISPATCH.

Track example: Luigi Circuit

???

Arena example: GCN Cookie Land

???


Links