share/hedgewars/Data/Missions/Training/Basic_Training_-_Shotgun.lua
branchphysfslayer
changeset 8043 da083f8d95e6
parent 7877 b3fb94986255
child 8679 a8bdcf7bec20
equal deleted inserted replaced
8040:448d61778ca7 8043:da083f8d95e6
    11 -- At first we implement the localization library using loadfile.
    11 -- At first we implement the localization library using loadfile.
    12 -- This allows us to localize strings without needing to think
    12 -- This allows us to localize strings without needing to think
    13 -- about translations.
    13 -- about translations.
    14 -- We can use the function loc(text) to localize a string.
    14 -- We can use the function loc(text) to localize a string.
    15 
    15 
    16 loadfile(GetDataPath() .. "Scripts/Locale.lua")()
    16 HedgewarsScriptLoad("/Scripts/Locale.lua")
    17 
    17 
    18 -- This variable will hold the number of destroyed targets.
    18 -- This variable will hold the number of destroyed targets.
    19 local score = 0
    19 local score = 0
    20 -- This variable represents the number of targets to destroy.
    20 -- This variable represents the number of targets to destroy.
    21 local score_goal = 5
    21 local score_goal = 5