May 4, 2010 at 5:08 AM
Cold Agony of Resolute Vacuum
"Heavy swords for sale. Suitable for most RPG Protagonists. Apply now!"
Join Date: Jan 1, 2008
Location: Elsewhere
Posts: 1973
Celtic Minstrel said:If you wanted to make a command for this, a teleporter slot is cleared by shifting down the entries that come after it and then zeroing the resulting duplicate entry.
You could try zeroing only the entry you want to get rid of, though; it may be sufficient. If so, that'd be a pretty short command (just a couple of "copy 0 as a long to this place in memory).
Interesting idea, but covered with a simple TSC solution:
Code:
//Unused - No flag set
#1000
<KEY<MSG<TUR[NULL OPTION]<WAI9999<END
#1001
<KEY<FLJ0029:1007<FLJ0030:1013<FLJ0031:1019<FLJ0032:1025<FLJ0033:1031<FLJ0034:1037<FLJ0035:1043<FLJ0036:1049<MSG<TUROption 1<WAI9999<END
#1002
<KEY<FLJ0029:1008<FLJ0030:1014<FLJ0031:1020<FLJ0032:1026<FLJ0033:1032<FLJ0034:1038<FLJ0035:1044<FLJ0036:1050<MSG<TUROption 2<WAI9999<END
#1003
<KEY<FLJ0029:1009<FLJ0030:1015<FLJ0031:1021<FLJ0032:1027<FLJ0033:1033<FLJ0034:1039<FLJ0035:1045<FLJ0036:1051<MSG<TUROption 3<WAI9999<END
#1004
<KEY<FLJ0029:1010<FLJ0030:1016<FLJ0031:1022<FLJ0032:1028<FLJ0033:1034<FLJ0034:1040<FLJ0035:1046<FLJ0036:1052<MSG<TUROption 4<WAI9999<END
#1005
<KEY<FLJ0029:1011<FLJ0030:1017<FLJ0031:1023<FLJ0032:1029<FLJ0033:1035<FLJ0034:1041<FLJ0035:1047<FLJ0036:1053<MSG<TUROption 5<WAI9999<END
#1006
<KEY<FLJ0029:1012<FLJ0030:1018<FLJ0031:1024<FLJ0032:1030<FLJ0033:1036<FLJ0034:1042<FLJ0035:1048<FLJ0036:1054<MSG<TUROption 6<WAI9999<END
//Alchemy 1 - Flag 29
#1007
<MSG<TURLesser Healing Tonic
[Bottled Air + White Stone]<WAI9999<END
#1008
<MSG<TUREssence Chip
[Bottled Air + Charcoal]<WAI9999<END
#1009
<MSG<TURCrude Trans. - Earth/Fire
[Bottled Air + Rainwater]<WAI9999<END
#1010
<MSG<TURCrude Trans. - Air/Water
[White Stone + Charcoal]<WAI9999<END
#1011
<MSG<TURRallying Cry
[White Stone + Rainwater]<WAI9999<END
#1012
<MSG<TURMalicious Malignants
[Charcoal + Rainwater]<WAI9999<END
//Alchemy 2 - Flag 30
#1013
<MSG<TURGreater Healing Tonic
[Kite Down + Black Sand]<WAI9999<END
#1014
<MSG<TUREssence Fragment
[Kite Down + Flint]<WAI9999<END
#1015
<MSG<TURRefined Trans. - Earth/Fire
[Kite Down + Dew]<WAI9999<END
#1016
<MSG<TURRefined Trans. - Air/Water
[Black Sand + Flint]<WAI9999<END
#1017
<MSG<TURShadow Ally
[Black Sand + Dew]<WAI9999<END
#1018
<MSG<TURProdigy Parasite
[Flint + Dew]<WAI9999<END
//Alchemy 3 - Flag 31
#1019
<MSG<TURBodyforger
[Danderspore + Prismstone]<WAI9999<END
#1020
<MSG<TUREssence Shard
[Danderspore + Sundrop]<WAI9999<END
#1021
<MSG<TURPerfect Trans. - Earth/Fire
[Danderspore + Hoarfrost]<WAI9999<END
#1022
<MSG<TURPerfect Trans. - Air/Water
[Prismstone + Sundrop]<WAI9999<END
#1023
<MSG<TURKings' Army
[Prismstone + Hoarfrost]<WAI9999<END
#1024
<MSG<TURSynthesis Symbiote
[Sundrop + Hoarfrost]<WAI9999<END
//Spells - Flag 32
#0025
<MSG<TURBrimstone Barrage<WAI9999<END
#0026
<MSG<TURThunderclap Torrent<WAI9999<END
#0027
<MSG<TURShadow Servant<WAI9999<END
#0028
<MSG<TURKnitting Wounds<WAI9999<END
#0029
<MSG<TURNimble Nimbus<WAI9999<END
#0030
<MSG<TURRecall<WAI9999<END
//Basic Shop - Flag 33
#0031
<MSG<TUR<WAI9999<END
#0032
<MSG<TUR<WAI9999<END
#0033
<MSG<TUR<WAI9999<END
#0034
<MSG<TUR<WAI9999<END
#0035
<MSG<TUR<WAI9999<END
#0036
<MSG<TUR<WAI9999<END
//Advanced Shop - Flag 34
//Unused - Flag 35
//Unused - Flag 36
#0037
You cannot create this.<WAI9999<END
[Indicates notes to myself that may appear in the final version]
//Indicates comments
Basically, calling the teleport menu prompts a chain of flag checks (the flags in question being toggled right before the alchemy/shop/spell/etc calls the menu), and depending on which flag is left set will display the appropriate information for each teleport menu item.
Only one flag is left set at a time, leaving only one option possible of being displayed.
The fact that setting no flag gives a null menu is not an oversight; it's intentionally left that way as a debugging measure; it may get used for a plot event in the future, though.
As well, the shops may or may not actually occur, and the last 2 menu options (flags 35 and 36) are, again, reserved for a plot-based menus*.
Either way, I'm as far as I can go with scripting the guts**, so I'mma be tilesetting it up for a while.
* Although I'm tempted to make the shops 6th menu item be 'Sell', and on the sell menu it'll display 'Buy'; which would use the 35 and 36 menus. Shops will only buy things they sell, because they're jerks, and they'll buy your items for half of what they sell them for.
** I'm waitin' on you! (Lace)