A meme campaign designed to troll liberals as “nonplayable characters” — a term borrowed from video game lingo — prompted Twitter to suspend roughly 1,500 accounts for engaging in “coordinated platform manipulation,” company officials said.

The nonplayable character, or NPC, meme mocks Trump critics as brainless drones who can’t think for themselves. The term originally referred to a video game persona that’s controlled by artificial intelligence, much like the game’s supporting cast or extras who toil in virtual anonymity as the protagonist works toward his or her main objective.

But users of message boards on Reddit and 4chan commandeered the term several months ago, the New York Times reported Tuesday. At the center of the trolling campaign is a gray avatar known as NPC Wojak, a variation of a Microsoft Paint character that features an expressionless, catatonic face with tiny eyes and a pointed nose.

In July 2016, an anonymous 4chan user started a thread titled “Are You an NPC?” on a video game message board that referred to them as people who “autonomously follow group thinks and social trends,” according to KnowYourMeme.com.

Beginning in early September, several threads on 4chan began popping up that referred to people without an “inner voice” as NPCs. Days later, according to the website, a Twitter user who has since been suspended — @SpookyStirnman — posted a comic depicting Wojak as an NPC alongside the message: “All will be converted.”

A group of users on Reddit’s largest pro-Trump forum — r/the_donald — then took the NPC meme campaign to a new level last week by creating dozens of bogus Twitter accounts, the Times reported. Although it started primarily as a joke, some of the accounts began posting inaccurate information about the upcoming election, encouraging Democrats to vote on Nov. 7, or a day after polls close.

“Get out and vote Nov 7th,” read a tweet by user NPC_Brennan, whose account has since been suspended. “Take back the house and senate! Then we will take their guns!! #AbloshICE #Abolish2A”

Other NPC-related memes, meanwhile, mocked liberals as doltish sheep who mechanically repeat chants at protests organized against Trump.

That account and roughly 1,500 others were suspended for “engaging in coordinated platform manipulation,” which is a violation of Twitter policies, a source close to the matter told The Post in an email Thursday.

The source confirmed the Times’ reporting but declined to address specific accounts due to privacy and security concerns.

“The number is correct but we’ve nothing further to share for now,” the source said. “We want to ensure we’re protecting the efficacy of our efforts.”