AIDef:Action/FromCDungeonToMainField: Difference between revisions

imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
|type=Action
|type=Action
}}
}}
Special purpose variant of [[AIDef:Action/ChangeScene]] which automatically sets WarpDestMapName and WarpDestPosName to CDungeon/%s and Entrance_1 respectively.


The dungeon map name is determined from the player’s coordinates and location markers in Map/MainField/Static.mubin. The coordinates of each Dungeon marker are compared with the player’s; if Link is within 100 distance units of (x,y,z) the dungeon name is extracted from the SaveFlag name (e.g. Location_Dungeon051 -> Dungeon051) and used as the warp destination map name.
Special purpose variant of [[AIDef:Action/ChangeScene]] which automatically sets WarpDestMapName and WarpDestPosName to <code>MainField/%s</code> [new map name, e.g. A-1] and <code>%s</code> [current map name, e.g. CDungeon100_1] respectively.
 
The new map name is determined using <code>Map/MainField/Static.mubin</code> and the current map name.
 
== DynamicInstParams ==
== DynamicInstParams ==
{|class="wikitable"
{|class="wikitable"