MrYiang Posted November 4, 2022 Share Posted November 4, 2022 Soo, i want to add the tag "Sane" to Wendy, Wormwood, Webber and Walter, but i don't know how to actually do it from the modmain.lua, any help? Link to comment https://forums.kleientertainment.com/forums/topic/144263-how-to-add-one-tag-to-multiple-characters/ Share on other sites More sharing options...
TemporarySolutn Posted November 5, 2022 Share Posted November 5, 2022 table, loop Link to comment https://forums.kleientertainment.com/forums/topic/144263-how-to-add-one-tag-to-multiple-characters/#findComment-1606278 Share on other sites More sharing options...
MrYiang Posted November 12, 2022 Author Share Posted November 12, 2022 Can you explain me a little bit more? Like, what should I write, I don't have so much experience making coding in dst Link to comment https://forums.kleientertainment.com/forums/topic/144263-how-to-add-one-tag-to-multiple-characters/#findComment-1609048 Share on other sites More sharing options...
TemporarySolutn Posted November 13, 2022 Share Posted November 13, 2022 gorf local characters = { "webber", "wormwood", "wilson" } for k, v in pairs(characters) do AddPrefabPostInit(v, function(inst) inst:AddTag("special") end end I didn't test it, if it doesnt exactly work alteast you get the gist of it Link to comment https://forums.kleientertainment.com/forums/topic/144263-how-to-add-one-tag-to-multiple-characters/#findComment-1609222 Share on other sites More sharing options...
MrYiang Posted November 15, 2022 Author Share Posted November 15, 2022 On 11/13/2022 at 3:35 AM, TemporarySolutn said: for k, v in pairs(characters) do AddPrefabPostInit(v, function(inst) inst:AddTag("special") end end I've tried using this code, but it seems like the only problem here is that the parentheses is not closed. Link to comment https://forums.kleientertainment.com/forums/topic/144263-how-to-add-one-tag-to-multiple-characters/#findComment-1609846 Share on other sites More sharing options...
TemporarySolutn Posted November 15, 2022 Share Posted November 15, 2022 it was intended to show you more or less what you're supposed to do and not to copy paste it change the first end to end) Link to comment https://forums.kleientertainment.com/forums/topic/144263-how-to-add-one-tag-to-multiple-characters/#findComment-1609887 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