Settlers United Wiki
Settlers UnitedImprint
S4: WarriorsLib EN
S4: WarriorsLib EN
  • Tutorials
    • Installation
    • Is the plugin loaded?
  • WarriorsLib Functions
    • WarriorsLib.SelectWarriors
    • WarriorsLib.Send
    • WarriorsLib.getPlayerName
    • WarriorsLib.isHuman
    • WarriorsLib.RecruitWarriors
    • WarriorsLib.GarrisonWarriors
    • WarriorsLib.UnGarrisonWarriors
    • WarriorsLib.SetTradingRoute
    • WarriorsLib.TradeGood
    • WarriorsLib.StoreGood
    • WarriorsLib.SetBuildingWorkarea
    • WarriorsLib.GetResourceCountInArea
    • WarriorsLib.GetResourceCountAt
  • WarriorsLib Enums
    • Movementtype
Powered by GitBook
On this page
Edit on GitHub
  1. Tutorials

Is the plugin loaded?

Example to check within new_game() function of your mapscript if WarriorsLib is installed by the player

function new_game()
	if WarriorsLib then
		dbg.stm("WarriorsLib has been found")
	else
		dbg.stm("WarriorsLib is not installed")
	end
end
PreviousInstallationNextWarriorsLib.SelectWarriors

Last updated 3 years ago