• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "AbandonAllValleys"
    Differences between revisions 4 and 5
    Revision 4 as of 2013-11-23 23:52:14
    Size: 239
    Editor: Inanna
    Comment:
    Revision 5 as of 2014-10-14 21:25:38
    Size: 242
    Editor: Romulus
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 6: Line 6:
    x = city.fields.length
    if x execute  "abandon "+FieldIdToCoords(city.fields[0].id)
    x = x-1

    if x >=0 goto abandonAllValleys
    if city.fields.length = 0 goto done
    execute "abandon " + city.fields[0].coords
    if !$error goto abandonAllValleys

    label done

    AbandonAllValleys

    Script to drop all valleys

    label abandonAllValleys
    if city.fields.length = 0 goto done
    execute "abandon " + city.fields[0].coords
    if !$error goto abandonAllValleys
    
    label done


    ScriptExamples

    AbandonAllValleys (last edited 2014-10-15 14:14:18 by Inanna)