Constructed GOTO Not Working
I'm creating a custom template to help me map the decks of the habitat ring of a large rotating space station. (13 decks averaging about a mile long with widths varying from 72 to 114 feet for a total area of 155 acres. Since each map will cover a 30° arc of one deck, that's a 156 maps! ?) I want the template map title to be a hotspot that runs a script that asks some questions to prepare the map; specifically the deck number (1-13) and the sector (α, β, γ and δ) and subsectors to be mapped. After customizing the map title and the drawing grid (1° divisions vary in size from deck to deck) my script crashes when it tries to get the deck width from the following code:
gl comm goto GetWid
apnd comm DeckN
comm
:GetWid1
gv DeckW 90
goto DrawHull
When I try for Deck number (DeckN
) 1, I get this error message:
In the immortal words of Vincent Barbarino "I'm so confused!" I'm attaching the full script in case the fault lies elsewhere.
Comments
Can't find a way to get this to work unfortunately. Not sure why, probably a limitation with how GOTO reads things.
You may have to resolve to checking the numbers instead and having a series of
IFZ (num-X)
type of statements instead. Unless someone like @jslayton have any additional ideas here.And I thought I was so clever! <sigh> I'll just generate a column of numbers and do a search & replace on it.
Okay, that works. (I'm looking for the "embarrassed" smiley and I just can't find it. Now I really need it!)
Well, it was clever. Shame it didn't work.