I'm running MT 1.5.12
I last did some coding around december or so. And I seem to remember copytoken macro I made worked but I had a lot going on and its fuzzy and dunno if I just visualized it working
I'm getting this error
java.lang.NullPointerException error executing expression copyToken(EncounterShip, 1, "z.Tokens.Encounters")
The map I'm working with is named properly as the variable and I have a properly named set of tokens on that map.
I've been over the code but Im still learning. Does the below code look ok? Why do I get the error?
Code: Select all
[h:status=input( "EncounterShip|Armada, Beholder.EyeSpike, Beholder.Tyrant, Dragonfly, DragonShip, Drakkar, Flitter, Gadabout, Galleon, GrandBombard, Hammership, Hummingbird, Illithid.Nautiloid, Man-o-War, Mosquito, Neogi.DeathSpider, Neogi.MindSpider, SkeletonShip, Squidship, Tradesman, Wasp|SELECT: Which Ship?|RADIO|SELECT=0 VALUE=STRING" )] [h: copyToken(EncounterShip, 1, "z.Tokens.Encounters")]