Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
local item = Isaac.GetItemIdByName("Mirror");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Swaps location with a random enemy";
Completely new to this so I'm sure I'm doing something wrong. Any thoughts? Thanks!
The code you posted works for me. Ive put it in the "main.lua" file of the mod, that adds the item. Have you put it into EIDs "main.lua" file? if yes, then please add it into the main.lua file of the mod the item originates from.
EDIT: Gave it a try and also noticed some of the item names weren't the exact same as the other mods. Once I cleaned up the names and added the code to all mods it worked!!
Thank you!
local item = Isaac.GetItemIdByName("Birth Control");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Alive familiars are removed in exchange for random stat upgrades.";
into the alphabirth main.lua, and it still comes up with "effect not defined", am I doing something wrong?
local item = Isaac.GetItemIdByName("The first plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "+3 red heart containers #all soul/demon hearts replaced with red hearts.";
local item = Isaac.GetItemIdByName("The second plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Killing flies can regenerate health!";
local item = Isaac.GetItemIdByName("The third plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Being near enemies may spawn blue spiders";
local item = Isaac.GetItemIdByName("The fourth plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Being near enemies may spawn blue flies";
local item = Isaac.GetItemIdByName("The fifth plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Poisons enemies that get close";
local item = Isaac.GetItemIdByName("The sixth plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Gives Isaac some horrible boils that explode upon being hit and damage nearby enemies";
local item = Isaac.GetItemIdByName("The seventh plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Summons lightning to strike your enemies";
local item = Isaac.GetItemIdByName("The eighth plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "May spawn locusts upon hitting enemies";
local item = Isaac.GetItemIdByName("The ninth plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
end
__eidItemDescriptions[item] = "Permanent curse of darkness #enemies that go near Isaac may become scared";
local item = Isaac.GetItemIdByName("The tenth plague");
if not __eidItemDescriptions then
__eidItemDescriptions = {};
You have multiple errors in your code. the first is, that you define the variable "item" multiple times. the second one is, that you check, if the EID global variable is defined, after every item you add. thats not nessasary. also, you forget a description for the tenth plague. here is the correct and faster code :