To this end, I created a blank test map and attempted to put a flag into conquest mode. I copied over the msh files for the flag and also com_item_flag_neutral and com_item_flag_neutral_carried (as well as their cloth odfs) into my world's odf and msh folders.
I placed a flag object in ZE, in the base layer, and named it "flagthing1". Then I added the following to ScriptPostLoad:
Code: Select all
AddFlag{name = "flagthing1", homeRegion = "", captureRegion = "cp1_capture",
capRegionMarker = "hud_objective_icon", capRegionMarkerScale = 3.0,
mapIcon = "flag_icon", mapIconScale = 2.0}Code: Select all
Message Severity: 3
.\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to call global `AddFlag' (a nil value)
stack traceback:
(none): in function `ScriptPostLoad'I don't have much experience with flags. What am I doing wrong?
EDIT - I tried removing those lines from my LUA and changing the ClassLabel from "prop" to "flag". Result: flag item vanishes. I get this:
Code: Select all
Message Severity: 2
.\Source\FlagItem.cpp(945)
Could not build FlagItem


