kivviz Posted January 6, 2015 Share Posted January 6, 2015 PrefabFiles = { "marty", "backpackm",}Assets = { Asset( "IMAGE", "images/saveslot_portraits/marty.tex" ), Asset( "ATLAS", "images/saveslot_portraits/marty.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/marty.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/marty.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/marty_silho.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/marty_silho.xml" ), Asset( "IMAGE", "bigportraits/marty.tex" ), Asset( "ATLAS", "bigportraits/marty.xml" ), Asset( "IMAGE", "images/map_icons/marty.tex" ), Asset( "ATLAS", "images/map_icons/marty.xml" ), Asset( "IMAGE", "images/avatars/avatar_marty.tex" ), Asset( "ATLAS", "images/avatars/avatar_marty.xml" ), Asset( "IMAGE", "images/avatars/avatar_ghost_marty.tex" ), Asset( "ATLAS", "images/avatars/avatar_ghost_marty.xml" ),}AddMinimapAtlas("images/marty.xml")-- strings! Any "marty" below would have to be replaced by the prefab name of your character.-- The character select screen lines-- note: these are lower-case character nameGLOBAL.STRINGS.CHARACTER_TITLES.marty = "Traveller"GLOBAL.STRINGS.CHARACTER_NAMES.marty = "Marty" -- Note! This line is especially important as some parts of the game require -- the character to have a valid name.GLOBAL.STRINGS.CHARACTER_DESCRIPTIONS.marty = "*Likes to run and travel\n*Maybe do a backpack on start\n*Loves berries"GLOBAL.STRINGS.CHARACTER_QUOTES.marty = "\"We will travel?\""-- You can also add any kind of custom dialogue that you would like. Don't forget to make-- categores that don't exist yet using = {}-- note: these are UPPER-CASE charcacter name--GLOBAL.STRINGS.CHARACTERS.marty = {}--GLOBAL.STRINGS.CHARACTERS.marty.DESCRIBE = {}--GLOBAL.STRINGS.CHARACTERS.marty.DESCRIBE.EVERGREEN = "A template description of a tree."local require = GLOBAL.requirelocal STRINGS = GLOBAL.STRINGSGLOBAL.STRINGS.CHARACTERS.MARTY = require "speech_marty"-- DST STRINGS.NAMES.MARTY = "Marty"STRINGS.CHARACTERS.GENERIC.DESCRIBE.MARTY = { GENERIC = "Berries now!", ATTACKER = "Back off!", MURDERER = "You are murder!", REVIVER = "Friend of ghosts", GHOST = "Wow, ghost, yay",}-- Let the game know marty is a male, for proper pronouns during the end-game sequence.-- Possible genders here are MALE, FEMALE, or ROBOTtable.insert(GLOBAL.CHARACTER_GENDERS.MALE, "marty")AddMinimapAtlas("images/map_icons/marty.xml"){ Recipe("backpackm", {Ingredient("trunk_summer", 1), Ingredient("silk", 10)}, RECIPETABS.WAR, {SCIENCE = 0, MAGIC = 0, ANCIENT = 0}, nil, nil, nil, nil, true),}AddModCharacter("marty")Problem most likely for it:{ Recipe("backpackm", {Ingredient("trunk_summer", 1), Ingredient("silk", 10)}, RECIPETABS.WAR, {SCIENCE = 0, MAGIC = 0, ANCIENT = 0}, nil, nil, nil, nil, true),}What do I do not so? :\Why this code not correct? Help.. ._. Link to comment https://forums.kleientertainment.com/forums/topic/48544-error-help/ Share on other sites More sharing options...
Mobbstar Posted January 6, 2015 Share Posted January 6, 2015 When it says "attempt to ... global ..." you need to put GLOBAL. in front of it (including the full stop). Link to comment https://forums.kleientertainment.com/forums/topic/48544-error-help/#findComment-597771 Share on other sites More sharing options...
kivviz Posted January 6, 2015 Author Share Posted January 6, 2015 When it says "attempt to ... global ..." you need to put GLOBAL. in front of it (including the full stop).Won't help as it to make?. _. Link to comment https://forums.kleientertainment.com/forums/topic/48544-error-help/#findComment-597773 Share on other sites More sharing options...
kivviz Posted January 6, 2015 Author Share Posted January 6, 2015 When it says "attempt to ... global ..." you need to put GLOBAL. in front of it (including the full stop). I simply still badly understand scripts..:< Link to comment https://forums.kleientertainment.com/forums/topic/48544-error-help/#findComment-597784 Share on other sites More sharing options...
Blueberrys Posted January 7, 2015 Share Posted January 7, 2015 Won't help as it to make?. _.I simply still badly understand scripts..:< It's usually a good idea to try to fix it yourself, you won't get any better at it unless you try. As Mobbstar said, you need to change all occurances of "RECIPETABS" to "GLOBAL.RECIPETABS"For the line you provided, it would be:Recipe("backpackm", {Ingredient("trunk_summer", 1), Ingredient("silk", 10)}, GLOBAL.RECIPETABS.WAR, {SCIENCE = 0, MAGIC = 0, ANCIENT = 0}, nil, nil, nil, nil, true), Link to comment https://forums.kleientertainment.com/forums/topic/48544-error-help/#findComment-598299 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now