world.DeleteLastMapItem

MUSHclient script function (Method)

Deletes the most recently-added item from the auto-mapper sequence.

Prototype

long DeleteLastMapItem();

Data type meanings

Description

Deletes the most recently-added item from the auto-mapper sequence. You might use this in a trigger to remove a direction that you were not able to go.

VBscript example

world.DeleteLastMapItem

Jscript example

world.DeleteLastMapItem();

PerlScript example

$world->DeleteLastMapItem();

Python example

world.DeleteLastMapItem

Lua example

DeleteLastMapItem()

Return value

eNoMapItems: Map sequence was empty, nothing was deleted.
eOK: Deleted last entry

Return code meanings

Related topic

Auto-mapper

See also

FunctionDescription
AddToMapperAdds a mapping direction to the auto-map sequence
DeleteAllMapItemsDeletes the all items from the auto-mapper sequence.
GetMappingCountGets a count of the number of items in the auto-map sequence
GetMappingStringReturns the speedwalk string generated by the auto-mapper.
MappingA flag to indicate whether we are mapping the world
RemoveMapReversesA flag to indicate whether we backtracks are removed during mapping