Results 1 to 2 of 2

Thread: CampaignUI.FortDetails(??)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default CampaignUI.FortDetails(??)

    I am trying to get this line working for scripting, so I can create a region by region manpower limit rather than theatre.

    I am guessing that it uses the fort name as one param, but I think there are others, and I am not sure what they are or how to find them out.

    Right now I have tryed CampaignUI.FortDetails("Fort Neuf Brisach"), but this does not work.

    Code I am using, right now I am putting it in the TI script test
    Code:
    stat, err = pcall(CampaignUI.FortDetails("Fort Neuf Brisach"))
     
    if not stat then
         log("[Error] "..tostring(err).."\n")
    end
    The Error that is shown in the log file.
    Code:
     
    Trying to retrieve type userdata, found type string
    Any help would be great.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  2. #2
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: CampaignUI.FortDetails(??)

    That probably means you need to supply a fort address (pointer), not the name

    No thing is everything. Every thing is nothing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •