Skip to content

1.22 Enums

Ruin0x11 edited this page Apr 30, 2021 · 56 revisions

Taken from 1.22's HSP source.

Contents

Variables

ID Meaning OpenNefia
chipIf(ci) data["base.chip"][ci].y_offset
chipIs(ci) data["base.chip"][ci].stack_height
chipIsh(ci) data["base.chip"][ci].shadow
iReserve(ci) [itemMemory(2, ci)] Can this spellbook be reserved? save.elona_sys.reservable_spellbook_ids
---------------------------------- --------------------------------- -----------------------------------------
npcMemory(0, dbId) Number of kills NpcMemory.killed(id)

Global

ID Index OpenNefia
gDeath gdata(0)
gDeepest gdata(1)
gKilled gdata(2)
gCrowd gdata(3) InstancedMap.crowd_density
gTurn gdata(4) save.base.play_turns
gWorldX gdata(5)
gWorldY gdata(6)
gDayPast gdata(7)
gRandSeedA gdata(8) save.base.random_seed
gRandSeedB gdata(9) (unused)
gYear gdata(10) save.base.date.year
gMonth gdata(11) save.base.date.month
gDay gdata(12) save.base.date.day
gHour gdata(13) save.base.date.hour
gMin gdata(14) save.base.date.minute
gSec gdata(15) save.base.date.second
gCountShop gdata(16)
gWeather gdata(17)
gNextWeather gdata(18)
gAreaPrev gdata(19)
gArea gdata(20)
gSubArea gdata(21)
gLevel gdata(22)
gSubLevel gdata(23)
gHomeLevel gdata(24) save.elona.home_rank
gAbsorbCharge gdata(25) IChara.absorbed_charges
gLevelStartOn gdata(26)
gCountShelter gdata(27)
gTravelSpeed gdata(28) IChara.travel_speed
gResEtherWind gdata(29) IChara.is_protected_from_etherwind
gRun gdata(30)
gRunLeft gdata(31)
gRunUp gdata(32)
gRunRight gdata(33)
gRunDown gdata(34)
gRunDir gdata(35)
gStoryBookmark gdata(36)
gLightSource gdata(37)
gQuitY gdata(38)
gLearned gdata(39) save.elona.total_skills_learned
gLastEdgeX gdata(60)
gLastEdgeY gdata(61)
gWorldTile gdata(62)
gReturn gdata(63)
gTeleportArea gdata(64)
gTeleportLevel gdata(65)
gReturnArea gdata(66)
gReturnLevel gdata(67)
gReturnX gdata(68)
gReturnY gdata(69)
gQuest gdata(70)
gQuestType gdata(71)
gQuestRef gdata(72)
gQuestStatus gdata(73)
gQuestFame gdata(74)
gClient gdata(75)
gHomeBase gdata(76)
gHomeFurniture gdata(77)
gHomeValue gdata(78)
gWorldRenew gdata(79)
gCargoWeight gdata(80)
gCargoLimitOrg gdata(81)
gCargoLimit gdata(82)
gResWeather gdata(83) IChara.is_protected_from_weather
gTimelimit gdata(84)
gCorrupt gdata(85)
unCount gdata(86)
gCountNotice gdata(87)
gNextTrain gdata(88)
gLight gdata(89)
gSleep gdata(90) awake_hours
gRowAct gdata(91)
gSleepExp gdata(92)
gTraitPoint gdata(93)
gScope gdata(94)
gWellWish gdata(95)
gVersion gdata(96)
gHeirDeed gdata(97)
gSleepGene gdata(98)
gNextVote gdata(99)
----------------- ---------------- ------------------------------------
gRankArena gdata(120) save.elona.ranks["elona.arena"]
gRankPetArena gdata(121) save.elona.ranks["elona.pet_arena"]
gRankCrawler gdata(122) save.elona.ranks["elona.crawler"]
gRankMuseum gdata(123) save.elona.ranks["elona.museum"]
gRankHome gdata(124) save.elona.ranks["elona.home"]
gRankShop gdata(125) save.elona.ranks["elona.shop"]
gRankVote gdata(126) save.elona.ranks["elona.vote"]
gRankFishing gdata(127) save.elona.ranks["elona.fishing"]
gRankGuild gdata(128) save.elona.ranks["elona.guild"]
----------------- ---------------- ------------------------------------
gCostHire gdata(170)
gMapEvent gdata(171)
gBill gdata(179)
gTravelDistance gdata(180)
gTravelTime gdata(181)
gLastTown gdata(182)
gRider gdata(183)
gMapVersion gdata(184)
gGodTalk gdata(185) IChara.can_catch_god_signals
gVoidBoss gdata(186)
gGodDetect gdata(187) IChara.can_detect_religion
----------------- ---------------- ------------------------------------
gEtherSpeed gdata(800)
gTimeStopTime gdata(801)
gExBattleWin gdata(802)
gExBattleMaxLv gdata(803)
gNextUpload gdata(804)
gPlayTime gdata(805)
gLastEther gdata(806)
gGodRank gdata(807)
gEquipChange gdata(808)
dmgType gdata(809)
----------------- ---------------- ------------------------------------
gSisterKilled gdata(810)
gSisterSaved gdata(811)
gSisterReward gdata(812)
gDeck gdata(813)
gGuest gdata(814) save.elona.waiting_guests
----------------- ---------------- ------------------------------------
gCapital gdata(815)
gBasicTax gdata(820)
----------------- ---------------- ------------------------------------
gGuildTrainer gdata(825)
gItemTurn gdata(826)
gNewFeat gdata(827)
gWizard gdata(828)
gToken gdata(829)
gDeckSize(cnt) gdata(830+cnt)
gWorld gdata(850)
gWallet gdata(851)

Flags

ID Index OpenNefia
flagTutorial gdata@(flagHead+0)
flagMain gdata@(flagHead+2)
flagMsFool gdata@(flagHead+3)
flagMsSage gdata@(flagHead+4)
flagMsKing gdata@(flagHead+5)
flagCasino gdata@(flagHead+6)
flagAlly gdata@(flagHead+7) save.elona.flag_has_met_ally
flagFireGiant gdata@(flagHead+8)
fireGiantId gdata@(flagHead+9)
flagHolyWell gdata@(flagHead+10)
flagKamikaze gdata@(flagHead+11)
flagRenewDungeon gdata@(flagHead+12)
flagMageGuild gdata@(flagHead+13)
flagFighterGuild gdata@(flagHead+14)
flagThiefGuild gdata@(flagHead+15)
flagMageGuildNorma gdata@(flagHead+16)
fFGNorma gdata@(flagHead+17)
fFGTG gdata@(flagHead+18)
flagThiefGuildNorma gdata@(flagHead+19)

Character

Attributes

ID Index OpenNefia
cExist(cc) cdata(0, cc) state
cX(cc) cdata(1, cc) x
cY(cc) cdata(2, cc) y
cXnew(cc) cdata(3, cc)
cYnew(cc) cdata(4, cc)
cRespawn(cc) cdata(5, cc)
cSync(cc) cdata(6, cc)
cPic(cc) cdata(7, cc) image
cSex(cc) cdata(8, cc) gender
cRelation(cc) cdata(9, cc) faction
cSpeedSum(cc) cdata(10, cc) time_this_turn
cSpeed(cc) cdata(11, cc)
cAiItem(cc) cdata(12, cc)
cPortrait(cc) cdata(13, cc) portrait
cInterest(cc) cdata(14, cc) interest
cInterestRenew(cc) cdata(15, cc) interest_renew_date
cPersonality(cc) cdata(16, cc) personality
cImpression(cc) cdata(17, cc) impression
cTone(cc) cdata(18, cc)
cHeight(cc) cdata(19, cc) height
cWeight(cc) cdata(20, cc) weight
cAge(cc) cdata(21, cc) age
cHunger(cc) cdata(22, cc) nutrition
cTxt(cc) cdata(23, cc)
cUnique(cc) cdata(24, cc)
cQuality(cc) cdata(25, cc) quality
cTurn(cc) cdata(26, cc) turns_alive
cId(cc) cdata(27, cc) _id
cFov(cc) cdata(28, cc) fov
cTarget(cc) cdata(29, cc) target
cGold(cc) cdata(30, cc) gold
cPlat(cc) cdata(31, cc) platinum
cAttackStyle(cc) cdata(32, cc) is_wielding_two_handed, is_dual_wielding, is_wielding_shield
cMeleeStyle(cc) cdata(33, cc) melee_style
cFame(cc) cdata(34, cc)
cExp(cc) cdata(35, cc)
cExpToNext(cc) cdata(36, cc)
cTimeScale(cc) cdata(37, cc)
cLevel(cc) cdata(38, cc) level
cSpeedFix(cc) cdata(39, cc)
cAlignment(cc) cdata(40, cc)
cSkillPoint(cc) cdata(41, cc) skill_bonus
cSPearned(cc) cdata(42, cc)
cInvWeight(cc) cdata(43, cc)
cCarryLimit(cc) cdata(44, cc)
cBurden(cc) cdata(45, cc)
cLevelOrg(cc) cdata(48, cc)
cKarma(cc) cdata(49, cc) karma
cHP(cc) cdata(50, cc) hp
cMHP(cc) cdata(51, cc) max_hp
cSP(cc) cdata(52, cc) stamina
cMSP(cc) cdata(53, cc) max_stamina
cMP(cc) cdata(55, cc) mp
cMMP(cc) cdata(56, cc) max_mp
cDrainHP(cc) cdata(60, cc)
cGod(cc) cdata(61, cc) god
cPiety(cc) cdata(62, cc) piety
cPray(cc) cdata(63, cc) prayer_charge
cEqWeight(cc) cdata(64, cc)
cCastStyle(cc) cdata(65, cc) cast_style
cVopalChance(cc) cdata(66, cc) vorpal_rate
cCritChance(cc) cdata(67, cc) critical_rate
cBodySpdFix(cc) cdata(68, cc)
cOrgRelation(cc) cdata(69, cc)
cPV(cc) cdata(70, cc) pv
cDV(cc) cdata(71, cc) dv
cATK(cc) cdata(72, cc)
cDMG(cc) cdata(73, cc)
cRATK(cc) cdata(74, cc)
cRDMG(cc) cdata(75, cc)
cPvFix(cc) cdata(76, cc) pv_correction
cDvFix(cc) cdata(77, cc) dv_correction
cBarrier(cc) cdata(78, cc)
cEmoIcon(cc) cdata(79, cc) emotion_icon, emotion_icon_turns
cArea(cc) cdata(80, cc)
cAreaLv(cc) cdata(81, cc)
cQuestNpc(cc) cdata(82, cc)
cDir(cc) cdata(83, cc)
cHireDate(cc) cdata(84, cc)
cFriendship(cc) cdata(85, cc)
cSAN(cc) cdata(86, cc) insanity
cCurse(cc) cdata(87, cc)
cExtraMelee(cc) cdata(88, cc) extra_melee_attack_rate
cExtraShoot(cc) cdata(89, cc) extra_ranged_attack_rate
cResDamage(cc) cdata(90, cc) damage_resistance
cImmuneDamage(cc) cdata(91, cc) damage_immunity
cReflectDamage(cc) cdata(92, cc) damage_reflection
cVomit(cc) cdata(93, cc)
cRowAct(cc) cdata(140, cc)
cActionPeriod(cc) cdata(141, cc)
cItemUsing(cc) cdata(142, cc) IItem.chara_using
cRowActWarn(cc) cdata(143, cc)
cPerformScore(cc) cdata(144, cc)
cPerformGold(cc) cdata(145, cc)
cRole(cc) cdata(150, cc)
cRoleShopLv(cc) cdata(151, cc)
cRowActTc(cc) cdata(152, cc)
cRoleFileId(cc) cdata(153, cc)
cRoleRestock(cc) cdata(154, cc)
cRoleVal(cc) cdata(155, cc)
cAiInt(cc) cdata(156, cc)
cUNID(cc) cdata(157, cc)
cRaceId(cc) cdata(158, cc)
cXorg(cc) cdata(171, cc)
cYorg(cc) cdata(172, cc)
cAi(cc) cdata(200, cc)
cAiAggro(cc) cdata(201, cc) IChara.ai_state.hate
cAiCalm(cc) cdata(202, cc)
cMoveAround(cc) cdata(203, cc)
cMoveDir(cc) cdata(204, cc)
cXdest(cc) cdata(205, cc)
cYdest(cc) cdata(206, cc)
cAiMoveFreq(cc) cdata(207, cc)
cAiDistance(cc) cdata(208, cc)
cAiSub(cc) cdata(209, cc)
cActRange(cc) cdata(210, cc)
cActHeal(cc) cdata(211, cc)
cActIndex(cc) cdata(212, cc)
cElement(cc) cdata(230, cc)
cPoison(cc) cdata(250, cc)
cSleep(cc) cdata(251, cc)
cParalyze(cc) cdata(252, cc)
cBlind(cc) cdata(253, cc)
cConfuse(cc) cdata(254, cc)
cFear(cc) cdata(255, cc)
cDim(cc) cdata(256, cc)
cDrunk(cc) cdata(257, cc)
cBleed(cc) cdata(258, cc)
cWet(cc) cdata(259, cc)
cInsane(cc) cdata(260, cc)
cSick(cc) cdata(261, cc)
cGravity(cc) cdata(262, cc)
cMochi(cc) cdata(263, cc)
cAngry(cc) cdata(264, cc)

Flags

ID Index OpenNefia
cFloat 5 is_floating
cInvisi 6 is_invisible
cSeeInvisi 7 can_see_invisible
cResConfuse 8 effect_immunities["elona.confusion"]
cResBlind 9 effect_immunities["elona.blindness"]
cResFear 10 effect_immunities["elona.fear"]
cResSleep 11 effect_immunities["elona.sleep"]
cResParalyze 12 effect_immunities["elona.paralysis"]
cResPoison 13 effect_immunities["elona.poison"]
cEater 14 is_protected_from_rotten_food
cResSteal 15 is_protected_from_theft
cIncognito 16
cDropGold 17 always_drops_gold
cSuicide 18
cDeathMaster 19
cRapidMagic 20
cLayHand 21
cHorse 22
cSplit 23
cEncCurse 24 has_cursed_enchantment
cNoHorse 25
cResEle 26 is_immune_to_elemental_damage
cSplit2 27
cMetal 28 is_metal
cCureBleeding 29 is_resistant_to_bleeding
cPowerBash 30 has_shield_bash
cImmuneMine 31
cTemper 32
cLivestock 960 is_livestock
cMarry 961
cMakeLove 962
cBodyguard 963 is_being_escorted
cSummoned 964 is_summoned
cShutup 965 is_talk_silenced
cScope 966
cPcc 967
cLeash 968 leashed_to
cHired 969
cQuestTarget 970 is_quest_target
cGuardTemp 971 is_being_escorted_poppy
cSuicideSwitch 972
cDeathCount 973 is_under_death_word
cLayHandCharge 974 is_lay_hand_available
cRide 975
cPrecious 976 is_precious
cHaveName 977
cPregnant 978 is_pregnant
cNoTarget 979 is_not_targeted_by_ai
cContingency 980 ICharaBuffs:find_buff("elona.contingency")
cRefresh 981
cEventTalk 982
cStoneBlood 983
cTokenFriend 984
cSandBag 985 is_hung_on_sandbag
cAnorexia 986
cPoisonFlag 987 is_eating_traded_item
cAiSaveMana 988
cMsgFile 989
cNoGod 990
cFestival 991 is_only_in_christmas

Liveness States

ID Index OpenNefia
cDead 0 Dead
cAlive 1 Alive
cSpirit 2 CitizenDead
cAdv 3
cAdvHospital 4
cAdvDead 5
cAllyDead 6 PetDead
cAllyWait 7 PetWait
cSuspend 8
cAllyWork 9
cTemp 10

Item

Attributes

ID Index OpenNefia
iNum(ci) inv(0, ci) amount
iValue(ci) inv(1, ci) value
iPic(ci) inv(2, ci) image
iID(ci) inv(3, ci) _id
iQuality(ci) inv(4, ci) quality
iX(ci) inv(5, ci) x
iY(ci) inv(6, ci) y
iWeight(ci) inv(7, ci) weight
iKnown(ci) inv(8, ci)
iCharge(ci) inv(9, ci) charges
iFile(ci) inv(9, ci)
iAmmo(ci) inv(9, ci) params.ammo_loaded
iNextPeriod(ci) inv(9, ci) next_use_date
iClient(ci) inv(9, ci)
iDice1(ci) inv(10, ci)
iDice2(ci) inv(11, ci)
iDmg(ci) inv(12, ci) damage_bonus
iAtk(ci) inv(13, ci) dv
iDV(ci) inv(14, ci) pv
iPV(ci) inv(15, ci)
iSkillRef(ci) inv(16, ci)
iStatus(ci) inv(17, ci)
iEquip(ci) inv(18, ci)
iEffect(ci) inv(19, ci)
iLevel(ci) inv(20, ci) bonus
iProperty(ci) inv(21, ci)
iCol(ci) inv(22, ci)
iSubName(ci) inv(23, ci)
iMaterial(ci) inv(24, ci)
iParam1(ci) inv(25, ci) (see below)
iGod(ci) inv(25, ci)
iBookId(ci) inv(25, ci)
iGrowth(ci) inv(25, ci)
iParam2(ci) inv(26, ci) (see below)
iExp(ci) inv(26, ci)
iParam3(ci) inv(27, ci) (see below)
iRot(ci) inv(27, ci)
iInterval(ci) inv(27, ci)
iParam4(ci) inv(28, ci) (see below)
iPoleBite(ci) inv(28, ci)
iIdtLevel(ci) inv(29, ci)
iTurn(ci) inv(30, ci)
----------------- ------------- ---------------------
iChargeLevel dbModeRef charge_level

iParam fields

The meaning of the iParam fields changes depending on the item they are being used for. This is not completely well-defined in an obvious way in the original HSP source.

Item ID Field OpenNefia (iParam3orgRef) Meaning
elona.garoks_hammer iParam1(ci) params.garoks_hammer_seed Random seed used for regenerating the target equipment's properties (prevents save scumming)
elona.treasure_map iParam1(ci) params.treasure_map_x X position of treasure. 0 if the position is not set yet, and should be generated on the first use of the item.
elona.treasure_map iParam2(ci) params.treasure_map_y Y position of treasure.
elona.secret_treasure iParam1(ci) params.secret_treasure_trait Type of secret treasure/trait to acquire.
- traitPermGood: "of saint"
- traitPermEvil: "of wicked"
- traitGodLuck: "of Ehekatl"
- traitGodEarth: "of Opatos"
- traitGodElement: "of Itzpalt"
- traitGodHeal: "of Jure"
Category elona.food iParam1(ci) params.food_type Type of cooked dish (meat, vegetable, fruit, etc). Multiplied by extFood (1000) for some reason. If 0, food has not been cooked yet.
Category elona.food iParam2(ci) params.food_quality Quality of the cooked dish (grotesque, charred, roast, etc.). If 0, food has not been cooked yet.
Affects the rotting state of the item when it's taken out of a container.
elona.kitty_bank iParam1(ci) params.bank_gold_stored Amount of gold in this blank.
elona.kitty_bank iParam2(ci) params.bank_gold_increment Amount of gold this bank accepts on each use.
elona.ancient_book iParam1(ci) params.ancient_book_difficulty Difficulty/title of this book (Voynich Manuscript, Dhol Chants, etc.)
elona.ancient_book iParam2(ci) params.ancient_book_is_decoded If 1, book has been deciphered.
elona.recipe iParam1(ci) Number of remaining uses. Probably unimplemented.
elona.book_of_rachel iParam1(ci) params.book_of_rachel_number Number of Book of Rachel.
elona.deed iParam1(ci) params.deed_home_id Quality of the home this deed creates.
elona.monster_ball iParam1(ci) params.monster_ball_captured_chara_id ID of the character held in this monster ball.
elona.monster_ball iParam2(ci) params.monster_ball_max_level Maximum level of this monster ball.
Category elona.cargo iParam1(ci) params.cargo_quality Base value of cargo.
Category elona.cargo iParam2(ci) params.cargo_buying_price Buying price. Recalculated when the shop window is opened, as it fluctuates per map and time.
Category elona.container iParam1(ci) params.chest_item_level Level of items. If 0 and there is no shop ID for the item, this container is empty.
Set to 0 when a town map containing it is used as the basis for a "conquer" quest map.
Category elona.container iParam2(ci) params.chest_lockpick_difficulty Difficulty of opening this chest with lockpicks.
elona.small_gamble_chest iParam2(ci) Level of chest.
Category elona.container iParam3(ci) params.chest_random_seed Random seed of container when generating items from it. Used to prevent save scumming.
elona.new_years_gift iParam3(ci) params.new_years_gift_quality Determines the contents of the gift. Lower numbers are worse quality.
elona.music_disc iParam1(ci) Music ID.
elona.gift iParam4(ci) params.gift_value Value of gift. The item's value in gold is calculated as iParam4(ci)*2500+500.
elona.bait iParam1(ci) params.bait_rank Rank of this bait.
elona.fishing_pole iPoleBite(ci) [iParam4] params.bait_type Last used bait on this fishing pole. If a different bait is used, the bait count on the fishing pole will be reset, otherwise it will be added to.
elona.shopkeepers_trunk iParam1(ci) Shop ID of the merchant this item was generated on. When the trunk is opened, this is the set of items that will be inside.
Function: instruments iParam1(ci) params.instrument_quality Instrument quality.
Category elona.furniture_bed iParam1(ci) params.bed_quality Quality of bed when used for sleep.
Function: wells iParam1(ci) params.amount_remaining Amount remaining in well. Decrements by Rand.rnd(3) each use. If -5, the well is dry.
Decremented by 10 when a town map containing this well is used as the basis for a "conquer" quest map.
Function: wells iParam3(ci) params.amount_dryness Increments by Rand.rnd(3) each use. If >= 20, the well completely dries up.
Function: cooking tools iParam2(ci) params.cooking_quality Quality of this cooking tool.
Function: chairs iParam1(ci) Chair designation.
-0: Free to use
- 1: Player's chair
- 2: Guest's chair.
Function: spell casting iParam1(ci) Magic ID.
Function: spell casting iParam2(ci) Magic power.
elona.fruit_tree iParam1(ci) Number of fruits left on this tree. Restocked when the map is refreshed.
elona.altar iGod(ci) [iParam1] params.altar_god_id God this altar is aligned with.
elona.book iBookId(ci) [iParam1] Book ID to look up in data/book.txt when this book is read.
elona.textbook iBookId(ci) [iParam1] ID of the skill this textbook improves.
elona.deed_of_heirship iParam1(ci) params.deed_of_heirship_quality Quality of this deed of heirship. Affects how many items you aquire from it.
Living weapons (iBit(iAlive, ci)) iGrowth(ci) [iParam1] Level of this living weapon.
Living weapons (iBit(iAlive, ci)) iExp(ci) [iParam2] Current experience of this living weapon.
Items of "raw" material iRot(ci) [iParam3] spoilage_date (spoilage_hours) Date this item will rot (hour timestamp). Is the item's spoilage_hours added to the current date timestamp.
Useable items iInterval(ci) [iParam3] Amount of time the player must wait between uses of this item, in hours.
------------------------------------- ------------------------- ----------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
elona.bill iSubName(ci) params.bill_gold_amount Amount of this bill in gold.

Food Types

ID Index
fdMeat 1000
fdVege 2000
fdFruit 3000
fdSweet 4000
fdPasta 5000
fdFish 6000
fdBread 7000
fdEgg 8000

Flags

ID Index OpenNefia
iBitNone 0
iAcidProof 1 is_acidproof
iFireProof 2 is_fireproof
iColdProof 3
iChargeItem 4 has_charge
iPrecious 5 is_precious
iLoveBlend 6 is_spiked_with_love_potion
iPeriod 7
iRemake 8 is_blessed_by_ehekatl
iStole 9 is_stolen
iAlive 10 is_alive
iDestItem 11
iDrop 12 always_drop
iNoDrop 13 is_no_drop
iPoisonBlend 14 is_mixed_with_poison
iUltimate 15 is_eternal_force
iGuestUse 16 is_showroom_only
iHandmade 17

Categories

ID Index Major? OpenNefia
fltHeadWear 10000 elona.equip_melee
fltWeapon 10000 X elona.equip_melee
fltHeavySword 10001 elona.equip_melee_broadsword
fltLongSword 10002 elona.equip_melee_long_sword
fltShortSword 10003 elona.equip_melee_short_sword
fltClub 10004 elona.equip_melee_club
fltHammer 10005 elona.equip_melee_hammer
fltStave 10006 elona.equip_melee_staff
fltPole 10007 elona.equip_melee_lance
fltHeavyPole 10008 elona.equip_melee_halberd
fltSmallAxe 10009 elona.equip_melee_hand_axe
fltLargeAxe 10010 elona.equip_melee_axe
fltSickle 10011 elona.equip_melee_scythe
------------------------------- ------- -------- ---------------------------------
fltHeadArmor 12000 Item.is_armor(item)
fltHeadHelm 12000 elona.equip_head
fltHelm 12000 X elona.equip_head
fltHeavyHelm 12001 elona.equip_head_helm
fltLightHelm 12002 elona.equip_head_hat
fltMediumHelm 12003 (unused)
------------------------------- ------- -------- ---------------------------------
fltShield 14000 X elona.equip_shield
fltLargeShield 14001 (unused)
fltMediumShield 14002 (unused)
fltSmallShield 14003 elona.equip_shield_shield
------------------------------- ------- -------- ---------------------------------
fltArmor 16000 X elona.equip_body
fltHeavyArmor 16001 elona.equip_body_mail
fltMediumArmor 16002 (unused)
fltLightArmor 16003 elona.equip_body_robe
------------------------------- ------- -------- ---------------------------------
fltBoots 18000 X elona.equip_leg
fltHeavyBoots 18001 elona.equip_leg_heavy_boots
fltLightBoots 18002 elona.equip_leg_shoes
fltMediumBoots 18003 (unused)
------------------------------- ------- -------- ---------------------------------
fltGirdle 19000 X elona.equip_cloak
fltMediumGirdle 19001 elona.equip_back_girdle
------------------------------- ------- -------- ---------------------------------
fltCloack 20000 X elona.equip_back
fltMediumCloack 20001 elona.equip_back_cloak
------------------------------- ------- -------- ---------------------------------
fltGlove 22000 X elona.equip_wrist
fltHeavyGlove 22001 elona.equip_wrist_gauntlet
fltMediumGlove 22002 (unused)
fltLightGlove 22003 elona.equip_wrist_glove
------------------------------- ------- -------- ---------------------------------
fltHeadRange 24000 elona.equip_ranged
fltRange 24000 X elona.equip_ranged
fltShortBow 24001 elona.equip_ranged_bow
fltCrossBow 24003 elona.equip_ranged_crossbow
fltPistol 24020 elona.equip_ranged_gun
fltLaser 24021 elona.equip_ranged_laser_gun
fltThrowingRock 24030 elona.equip_ranged_thrown
------------------------------- ------- -------- ---------------------------------
fltAmmo 25000 X elona.equip_ammo
fltAmmoBow 25001 elona.equip_ammo_arrow
fltAmmoCrossBow 25002 elona.equip_ammo_bolt
fltAmmoPistol 25020 elona.equip_ammo_bullet
fltAmmoEnergy 25030 elona.equip_ammo_energy_cell
------------------------------- ------- -------- ---------------------------------
fltHeadRing 30000
fltRing 32000 X elona.equip_ring
fltSmallRing 32001 elona.equip_ring_ring
------------------------------- ------- -------- ---------------------------------
fltAmulet 34000 X elona.equip_neck
fltSmallAmulet 34001 elona.equip_neck_armor
------------------------------- ------- -------- ---------------------------------
fltHeadItem 50000
refType < fltHeadItem Item.is_equipment(item)
range_fltAccessory(refType) Item.is_accessory(item)
------------------------------- ------- -------- ---------------------------------
fltHeadPotion 52000
fltPotion 52000 X elona.drink
fltPotionHeal 52001 elona.drink_potion
fltAle 52002 elona.drink_alcohol
------------------------------- ------- -------- ---------------------------------
fltScroll 53000 X elona.scroll
fltBuildingDeed 53100 elona.scroll_deed
------------------------------- ------- -------- ---------------------------------
fltSpellbook 54000 X elona.spellbook
fltBook 55000 X elona.book
fltRecipe 55500 (unused)
------------------------------- ------- -------- ---------------------------------
fltStaff 56000 X elona.rod
------------------------------- ------- -------- ---------------------------------
fltFood 57000 X elona.food
fltBread 57001 elona.food_flour
fltPasta 57002 elona.food_noodle
fltVege 57003 elona.food_vegetable
fltFruit 57004 elona.food_fruit
fltHerb 58005 elona.crop_herb
------------------------------- ------- -------- ---------------------------------
fltLiquid 58000 (unused)
fltSeed 58500 elona.crop_seed
------------------------------- ------- -------- ---------------------------------
fltTool 59000 X elona.misc_item
fltBlendTool 59500 elona.misc_item_crafting
------------------------------- ------- -------- ---------------------------------
fltFurniture 60000 X elona.furniture
refType >= fltFurniture Item.is_non_useable(item)
fltWell 60001 elona.furniture_well
fltAltar 60002 X elona.furniture_altar
fltUse 60003 (unused)
fltBed 60004 elona.furniture_bed
fltInstrument 60005 elona.furniture_instrument
------------------------------- ------- -------- ---------------------------------
fltRemain 62000 X elona.remains
------------------------------- ------- -------- ---------------------------------
fltJunk 64000 X elona.junk
fltField 64000 elona.junk_in_field
fltTownJunk 64100 elona.junk_town
------------------------------- ------- -------- ---------------------------------
fltGold 68000 X elona.gold
fltPlat 69000 X elona.platinum
fltChest 72000 X elona.container
fltRock 75000 (unused)
------------------------------- ------- -------- ---------------------------------
fltHeadOre 77000
fltOre 77000 X elona.ore
fltGem 77001 elona.ore_valuable
------------------------------- ------- -------- ---------------------------------
fltEnviro 80000 X elona.tree
------------------------------- ------- -------- ---------------------------------
fltHeadCargo 90000
fltCargoFood 91000 X elona.cargo_food
fltTrade 92000 X elona.cargo
------------------------------- ------- -------- ---------------------------------
fltNone 99999

Materials

ID Index OpenNefia
mtSand 0 "elona.sand"
mtLeather 1 "elona.leather"
mtSilk 2 "elona.silk"
mtCloth 3 "elona.cloth"
mtScale 4 "elona.scale"
mtGlass 5 "elona.glass"
mtWooden 6 "elona.wooden"
mtMithril 7 "elona.mithril"
mtEther 8 "elona.ether"
mtSteel 9 "elona.steel"
mtIron 10 "elona.iron"
mtCrystal 11 "elona.crystal"
mtBronze 12 "elona.bronze"
mtDiamond 13 "elona.diamond"
mtSpirit 14 "elona.spirit_cloth"
mtRubynus 15 "elona.rubynus"
mtPaper 16 "elona.paper"
mtDusk 17 "elona.dusk"
mtBone 18 "elona.bone"
mtChain 19 "elona.chain"
mtObsidian 20 "elona.obsidian"
mtMica 21 "elona.mica"
mtPearl 22 "elona.pearl"
mtEmerald 23 "elona.emerald"
mtDragon 24 "elona.dragon_scale"
mtSilver 25 "elona.silver"
mtPlatinum 26 "elona.platinum"
mtZylon 27 "elona.zylon"
mtGriffon 28 "elona.griffon_scale"
mtTitanium 29 "elona.titanium"
mtChrome 30 "elona.chrome"
mtAdamantium 31 "elona.adamantium"
mtGold 32 "elona.gold"
mtCoral 33 "elona.coral"
mtLead 34 "elona.lead"
mtFresh 35 "elona.fresh"
plantVege 36
plantFruit 37
plantHerb 38
plantUnknown 39
plantArtifact 40
plantJewel 41
plantStaff 42
mtWood 43 "elona.wood"

Use Effects

ID Index
effNone 0
effCarpentry 1
effAlchemy 2
effJeweller 3
effTailor 4
effScope 5
effMusicPlayer 6
effShelter 7
effShop 8
effTrain 9
effStoryPlayer 10
effMoneyBox 11
effFreezer 12
effTorch 13
effSnow 14
effCooking 15
effFishing 16
effPerform 17
effBite 18
effMirror 19
effIncognito 20
effMaterialKit 21
effRune 22
effLeash 23
effMine 24
effUnicornHorn 25
effRenewDungeon 26
effRenewWeather 27
effNuke 28
effTrait 29
effSpell 30
effPlant 31
effGeneMerge 32
effMonsterBall 33
effHealSan 34
effIronMaiden 35
effCutNeck 36
effDeck 37
effCard 38
effWhistle 39
effEvolution 40
effNewFeat 41
effLomias 42
effLuck 43
effChair 44
effSandBag 45
effRope 46
effUserNpc 47
effCreator 48
effGarokHammer 49

Map

Geometry

Index Meaning OpenNefia
map(x, y, 1) Character on tile Chara.at(x, y)
map(x, y, 4) Items on tile Item.at(x, y)
map(x, y, 5) Item chip stack on tile
map(x, y, 6) Feat on tile (param1+param2*1000+param3*100000+param4*10000000) Feat.at(x, y)
map(x, y, 7) Amount of debris (blood + fragments * 10) InstancedMap.debris
map(x, y, 8) Index of mef Mef.at(x, y)
map(x, y, 9) Light on tile InstancedMap:light(x, y)

Properties

ID Index OpenNefia
mWidth mdata(0) InstancedMap:width()
mHeight mdata(1) InstancedMap:height()
mTileFile mdata(2)
mRenew mdata(3) renew_major_date
mDownStairPos mdata(4)
mUpStairPos mdata(5)
mType mdata(6)
mCanSave mdata(7) is_temporary (inverted)
mRestorePos mdata(8)
mTimeScale mdata(9) turn_cost
mModerateCrowd mdata(10) max_crowd_density
mLevel mdata(11) level
mTileSet mdata(12)
mMusic mdata(13) music
mField mdata(14)
mWall mdata(15)
mRenewMinor mdata(16) renew_minor_date
mNoRenew mdata(17) is_not_renewable
mMaxInv mdata(18) item_on_ground_limit
mVersion mdata(19)
mFireSound mdata(20)
mVersionFix1 mdata(21)
mnName mdataN(0)

Random Dungeon Layouts

ID Index OpenNefia
rdStandard 1
rdWide 2
rdBigRoom 3
rdResident 4
rdJail 5
rdHunt 6
rdHarvest 7
rdLong 8
rdMaze 9
rdDog 10
rdPerform 11

Area

Properties

ID Index OpenNefia
areaType adata(0, p)
areaX adata(1, p)
areaY adata(2, p)
areaStartOn adata(3, p)
areaTileFile adata(4, p)
areaName adata(5, p)
areaDeepest adata(6, p)
areaTimescale adata(9, p)
areaMaxLevel adata(10, p)
areaCanSave adata(11, p)
areaRestorePos adata(12, p)
areaIcon adata(15, p)
areaId adata(16, p)
areaMinLevel adata(17, p)
areaTileSet adata(18, p)
areaLastVisit adata(19, p)
areaBoss adata(20, p)
areaField adata(21, p)
areaArenaWin adata(22, p)
areaPetArenaWin adata(23, p)
areaRandSeed adata(24, p)
areaRandRenew adata(25, p)
areaArenaRenew1 adata(26, p)
areaArenaRenew2 adata(27, p)
areaEconomy adata(28, p)
areaFestival adata(29, p)
areaParent adata(30, p)

Types

Unlike vanilla, maps in OpenNefia can have more than one type, stored as a list in InstancedMap.types.

ID Index OpenNefia
mTypeWorld 1 "world_map"
mTypeVillage 2 "guild"
mTypeTown 3 "town"
mTypeLocal 4 "field"
mTypeHome 5 "player_owned"
mTypeField 6 "shelter"
mTypeQuest 7 "quest"
-------------- ------- ----------------
mTypeDungeon 20 "dungeon"
mTypeTower 21 "dungeon"
mTypeForest 22 "dungeon"
mTypeFort 23 "dungeon"

Status Effects

ID Index
conPoison 1
conSleep 2
conParalyze 3
conBlind 4
conConfuse 5
conFear 6
conDim 7
conDrunk 8
conBleed 9
conWet 10
conInsane 11
conSick 12

Character Roles

Normal

ID Index
cRoleShopkeeper 1
cRoleChef 2
cRoleSpecial 3
cRoleCitizen 4
cRoleIdentifer 5
cRoleMayor 6
cRoleTrainer 7
cRoleInformer 8
cRoleBarten 9
cRoleArenaMaster 10
cRolePetArenaMaster 11
cRoleHealer 12
cRoleAdv 13
cRoleGuard 14
cRoleKing 15
cRoleShopGuard 16
cRoleSlaver 17
cRoleMaid 18
cRoleSister 19
cRoleUser 20
cRoleReturner 21
cRoleHorseMaster 22
cRoleCaravanMaster 23

Shop

ID Index
cRoleShopWeapon 1000
cRoleShopArmor 1001
cRoleShopFood 1002
cRoleShopBakery 1003
cRoleShopMagic 1004
cRoleShopInn 1005
cRoleShopGeneral 1006
cRoleShopBlack 1007
cRoleShopGoods 1008
cRoleShopTrade 1009
cRoleShopWander 1010
cRoleShopSf 1011
cRoleShopOffice 1012
cRoleShopDeed 1013
cRoleShopFish 1014
cRoleShopNoyel 1015
cRoleShopMirok 1016
cRoleShopMountain1 1017
cRoleShopMountain2 1018
cRoleShopSister 1019
cRoleShopBookR 1020
cRoleShopThief 1021
cRoleShopFestival 1022

Guest

ID Index
cRoleGuestBegger 2000
cRoleGuestSex 2001
cRoleGuestCitizen 2002
cRoleGuestMerchant 2003
cRoleGuestCritic 2004
cRoleGuestTrainer 2005
cRoleGuestProducer 2006

Damage Sources

ID Index
dmgFromChara 0
dmgFromTrap -1
dmgFromOverCast -2
dmgFromHunger -3
dmgFromPoison -4
dmgFromCurse -5
dmgFromBurden -6
dmgFromTumble -7
dmgFromPerform -8
dmgFromFire -9
dmgFromAtx -10
dmgFromUnknown -11
dmgFromBadFood -12
dmgFromBleed -13
dmgFromCorrupt -14
dmgFromAcid -15
dmgFromSuicide -16
dmgFromNuke -17
dmgFromMaiden -18
dmgFromCutNeck -19
dmgFromHang -20
dmgFromMochi -21

Inventory Menus

Index JP Title EN Title Icon OpenNefia Menu Title
0
1 調べる Examine 7 ui.inv.inventory_command.general
2 置く Drop 8 ui.inv.inventory_command.drop
3 拾う Pick Up ui.inv.inventory_command.get
4
5 食べる Eat 2 ui.inv.inventory_command.eat
6 装備する Wear ui.inv.inventory_command.wear
7 読む Read 3 ui.inv.inventory_command.read
8 飲む Drink 0 ui.inv.inventory_command.drink
9 振る Zap 1 ui.inv.inventory_command.zap
10 渡す Give 17 ui.inv.inventory_command.give
11 購入する Buy ui.inv.inventory_command.buy
12 売却する Sell ui.inv.inventory_command.sell
13 鑑定する Identify ui.inv.inventory_command.identify
14 使う Use 5 ui.inv.inventory_command.use
15 開く Open 4 ui.inv.inventory_command.open
16 料理する Cook ui.inv.inventory_command.cook
17 調合 Mix 6 ui.inv.inventory_command.dip_source
18 混ぜる対象 Mix Target ui.inv.inventory_command.dip
19 捧げる Offer ui.inv.inventory_command.offer
20 交換する Trade ui.inv.inventory_command.trade
21 提示する Present ui.inv.inventory_command.present
22 取る Take 17 ui.inv.inventory_command.take
23 対象の Target ui.inv.inventory_command.target
24 入れる Put 17 ui.inv.inventory_command.put
25 もらう Take 17 ui.inv.inventory_command.receive
26 投げる Throw 18 ui.inv.inventory_command.throw
27 盗む Pickpocket ui.inv.inventory_command.pickpocket
28 交換する Trade ui.inv.inventory_command.trade2
29 予約する Reserve ui.inv.inventory_command.reserve

Events

ID Index
evNone 0
evWinLesimas 1
evOpening 2
evLesimasBoss 3
evRandBoss 4
evRandBossWin 5
evDead 6
evVernisSpeech1 7
evQuestEliminate 8
evQuestFail 9
evQuestCheck 10
evShopWander 11
evFirstAlly 12
evMarry 13
evQuestTimeOut 14
evClientDead 15
evClientReached 16
evWelcome 17
evRagnarok 18
evShowHouse 19
evKillMother 20
evNuke 21
evGuild 22
evRogue 23
evInitEconomy 24
evVisitor 25
evSleepAmbush 26
evLittleSister 27
evGodInsideEhekatl 28
evRandBoss2 29
evMyEyes 30

Attributes

ID Index
rsSTR 10
rsEND 11
rsDEX 12
rsPER 13
rsLER 14
rsWIL 15
rsMAG 16
rsCHR 17
rsSPD 18
rsLUC 19

Skills

Weapon

ID Index
rsLongSword 100
rsShortSword 101
rsAxe 102
rsBlunt 103
rsPole 104
rsStave 105
rsMartial 106
rsSickle 107
rsBow 108
rsCrossBow 109
rsGun 110
rsThrow 111

Normal

ID Index OpenNefia
rsLiteracy 150
rsGene 151
rsTactics 152
rsWeightLifting 153
rsHealing 154
rsMeditation 155
rsTrade 156 elona.negotiation
rsStealth 157
rsOpenLock 158
rsDetection 159
rsInvest 160
rsAnatomy 161
rsSenseQuality 162
rsMining 163
rsMagicCapacity 164
rsMemorize 165
rsTwoWield 166
rsTwoHand 167
rsShield 168
rsHeavyArmor 169
rsMediumArmor 170
rsLightArmor 171
rsCasting 172
rsEvade 173
rsMagicDevice 174
rsDisarmTrap 175
rsCarpentry 176
rsTailor 177
rsAlchemy 178
rsJeweller 179
rsGardening 180
rsPrayer 181
rsTravel 182
rsPerform 183
rsCooking 184
rsFishing 185
rsCritical 186
rsEvadePlus 187
rsMagicControl 188
rsMarksman 189

Active

ID Index
rsPickpocket 300
rsRiding 301

Elements

Normal

ID Index
rsResFire 50
rsResCold 51
rsResLightning 52
rsResDarkness 53
rsResMind 54
rsResPoison 55
rsResNether 56
rsResSound 57
rsResNerve 58
rsResChaos 59
rsResMagic 60

Special

ID Index
rsResCut 61
rsResEther 62
rsResAcid 63

Effects

Spells

ID Index
spHealLight 400
spHealCritical 401
spHeal 402
spHealAll 403
spHealRain 404
spHealTouch 405
spRemoveHex 406
spVanishHex 407
spTeleportSelf 408
spTeleportOther 409
spShortTeleport 410
spIdentify 411
spUncurse 412
spRevealArtifact 413
spMagicArrow 414
spNetherArrow 415
spNerveArrow 416
spChaosArrow 417
spDarknessArrow 418
spIceBolt 419
spFireBolt 420
spLightningBolt 421
spDarknessBolt 422
spMindBolt 423
spSummon 424
spSummonWild 425
spSummonFire 426
spSummonPawn 427
spReturn 428
spMagicMap 429
spObjectMap 430
spIceBall 431
spFireBall 432
spChaosBall 433
spSoundBall 434
spCharm 435
spWeb 436
spMist 437
spMakeWall 438
spRestoreBody 439
spRestoreSpirit 440
spWish 441
spHolyShield 442
spDaze 443
spRegeneration 444
spResEle 445
spSpeedUp 446
spSpeedDown 447
spHero 448
spWeakArmor 449
spWeakEle 450
spHolyVeil 451
spNightmare 452
spKnowledge 453
spMutation 454
spAcidGround 455
spFireWall 456
spMakeDoor 457
spIncognito 458
spMagicLaser 459
spMagicBall 460
spResurrect 461
spContingency 462
spPocket 463
spHarvest 464
spMeteor 465
spGravity 466

Actions

ID Index
actDrainBlood 601
actBreathFire 602
actBreathCold 603
actBreathLightning 604
actBreathDarkness 605
actBreathChaos 606
actBreathSound 607
actBreathNether 608
actBreathNerve 609
actBreathPoison 610
actBreathMind 611
actBreath 612
actTouchWeaken 613
actTouchHunger 614
actTouchPoison 615
actTouchNerve 616
actTouchFear 617
actTouchSleep 618
actTeleportTarget 619
actDraw 620
actRestoreMP 621
actPunish 622
actHealJure 623
actAbsorbMana 624
actGodWind 625
actKnowSelf 626
actShortTeleport 627
actChangeCreature 628
actAbsorbCharge 629
actPutCharge 630
actAttackAll 631
actMutation 632
actGazeEther 633
actEtherGround 634
actSteal 635
actGazeInsane 636
actMassHealInsane 637
actGazeDim 638
actSummonCat 639
actSummonYeek 640
actSummonPawn 641
actSummonFire 642
actSummonSister 643
actSuicide 644
actCurse 645
actDeath 646
actBoost 647
actInsult 648
actAttackDist4 649
actAttackDist7 650
actEatFood 651
actGazeMana 652
actVanish 653
actPregnant 654
actGrenade 655
actLeaderShip 656
actEhekatl 657
actFinish 658
actDropMine 659
actDisassemble 660

Item

ID Index
efMilk 1101
efAle 1102
efWater 1103
efGainSpell 1104
efGainSkill 1105
efDecStats 1106
efGainFaith 1107
efPoison 1108
efConfuse 1109
efParalyze 1110
efBlind 1111
efSleep 1112
efPotential 1113
efCurse 1114
efNewBuilding 1115
efSulfuric 1116
efMakeMaterial 1117
efLooseResist 1118
efGainGrowth 1119
efElixer 1120
efDelMutation 1121
efGainAlly 1122
efGainSister 1123
efEnchantWeapon 1124
efEnchantArmor 1125
efDechant 1126
efChangeMaterial 1127
efHeirDeed 1128
efRecharge 1129
efDirtyWater 1130
efCureCorrupt 1131
efChangeItem 1132
efMorotov 1133
efSnow 1134
efLovePotion 1135
efTreasureMap 1136
efGainGirl 1137
efGainCatSister 1138
efGainSpeed 1139
efRemoveWeight 1140
efEscape 1141
efSalt 1142
efDescent 1143
efEvolution 1144
efItemRename 1145
efSoda 1146
efCupsule 1147

AI Actions

ID Index
actThrowPotionMinor -9999
actThrowPotionMajor -9998
actThrowPotionGreater -9997
actThrowSalt -9996
actMelee -1
actRange -2
actWaitMelee -3
actRandomMove -4

Mefs

ID Index
mefWeb 1
mefMist 2
mefAcid 3
mefEther 4
mefFire 5
mefPotion 6
mefNuke 7

Buffs

ID Index
buffNone 0
buffHolyShield 1
buffDaze 2
buffRegeneration 3
buffResEle 4
buffSpeedUp 5
buffSpeedDown 6
buffHero 7
buffWeakArmor 8
buffWeakEle 9
buffHolyVeil 10
buffNightmare 11
buffKnowledge 12
buffPunish 13
buffGodWind 14
buffIncognito 15
buffDeath 16
buffBoost 17
buffContingency 18
buffLucky 19
buffFoodSTR 20
buffFoodEND 21
buffFoodDEX 22
buffFoodPER 23
buffFoodLER 24
buffFoodWIL 25
buffFoodMAG 26
buffFoodCHR 27
buffFoodSPD 28

Magic Attack Styles

ID Index
castDefault 0
castSpider 1
castSpill 2
castTentacle 3
castGaze 4
castSpore 5
castMachine 6

Melee Attack Styles

ID Index
melDefault 0
melClaw 1
melFang 2
melBite 3
melGaze 4
melSting 5
melTouch 6
melSpore 7

Enchantment/Item Description Types

These are an index into the item description icons in interface.bmp at position [72 + (index * 24), 336].

Index Meaning Color OpenNefia ID
0 "You have to identify this item..."
1 "Increases your ___ skill." {0, 100, 0} elona.modify_skill
2 "Increases your by ___." {0, 0, 100} elona.modify_attribute
3 "Grants your resistance to ." {80, 100, 0} elona.modify_resistance
4 Special (extra damage, invokes skill, etc.) {80, 50, 0}
5 "It is a (light/heavy) weapon."
6 "It modifies DV by _ and PV by _."
7 Normal description
8 "Maintains ." {0, 100, 100} elona.sustain_attribute
9 All negative enchantments {180, 0, 0}

Sounds

Index ID File
49 seExitMap exitmap1.wav
59 seOpenBook book1.wav
44 seSave write1.wav
1 seChangePage pop1.wav
8 seKill kill1.wav
9 seKill2 kill2.wav
70 seTrap trap1.wav
10 seMore more1.wav
11 seGetGold getgold1.wav
12 sePayGold paygold1.wav
13 seEquip equip1.wav
14 seGet get1.wav
15 seGet2 get2.wav
16 seDrop drop1.wav
17 seDrink drink1.wav
18 seEat eat1.wav
19 seSpend spend1.wav
60 seDing ding1.wav
61 seDing2 ding3.wav
50 seDead dead1.wav
20 seOk ok1.wav
52 seDig dig1.wav
73 seBash bash1.wav
51 seComplete complete1.wav
21 seAlert alert1.wav
22 seLocked locked1.wav
23 seOpenChest chest1.wav
24 seNice ding2.wav
25 seCook cook1.wav
26 sePop1 pop2.wav
27 seFail1 fail1.wav
58 seBuild1 build1.wav
29 seBow1 bow1.wav
2 seMelee1 atk1.wav
3 seMelee2 atk2.wav
30 seGun1 gun1.wav
31 seThrow1 throw1.wav
32 seHeart1 heart1.wav
33 seHeal1 heal1.wav
72 seTeleport1 teleport1.wav
34 seBall1 ball1.wav
35 seBreath1 breath1.wav
37 seBolt1 bolt1.wav
36 seArrow1 arrow1.wav
38 seCurse1 curse1.wav
39 sePop2 pop3.wav
53 seChime1 chime.wav
42 seLaser1 laser1.wav
68 seWeb web.wav
69 seCheer cheer.wav
48 seOpenDoor door1.wav
45 seCrush1 crush1.wav
47 seCrush2 crush2.wav
6 seFire fire1.wav
86 seSnow snow.wav
87 seFishCast fish_cast.wav
88 seFishGet fish_get.wav
89 seFishFight fish_fight.wav
90 seAmmo ammo.wav
91 seThrow2 throw2.wav
81 seFoot1a foot1a.wav
83 seFoot2a foot2a.wav
82 seFoot1b foot1b.wav
84 seFoot2b foot2b.wav
85 seFoot2c foot2c.wav
40 seClick1 click1.wav
41 seGet3 get3.wav
71 seCard1 card1.wav
57 seFishing1 water.wav
46 seWater water2.wav
54 seDig2 dig2.wav
55 seBush1 bush1.wav
56 seGasha gasha.wav
5 seCursor1 cursor1.wav
62 sePop3 pop4.wav
63 sePunish punish1.wav
64 sePray pray1.wav
65 seOffer offer1.wav
66 seFizzle fizzle.wav
67 seOpenDoor2 door2.wav
43 seFoot foot.wav
4 seMiss miss.wav
74 seNight night.wav
75 seBgRain bg_rain.wav
76 seBgThunder bg_thunder.wav
77 seBgWind bg_wind.wav
78 seBgSea bg_sea.wav
79 seBgTown bg_town.wav
80 seBgFire bg_fire.wav
92 seScroll scroll.wav
93 seLog log.wav
94 seChara chara.wav
95 seWear wear.wav
96 seFeat feat.wav
97 sePort port.wav
98 seUnpop1 unpop1.wav
99 seChat chat.wav
100 seInv inv.wav
101 seSkill skill.wav
102 seSpell spell.wav
103 seDice dice.wav
104 seVomit vomit.wav
105 seAtkSword atksword.wav
106 seAtkIce atk_ice.wav
107 seAtkElec atk_elec.wav
108 seAtkFire atk_fire.wav
109 seAtkHell atk_hell.wav
110 seAtkPoison atk_poison.wav
111 seAtkNerve atk_nerve.wav
112 seAtkSound atk_sound.wav
113 seAtkMind atk_mind.wav
114 seAtkChaos atk_chaos.wav
115 seAtkDark atk_dark.wav
116 seCurse2 curse2.wav
117 seCurse3 curse3.wav
118 seEnc enc.wav
119 seEnc2 enc2.wav
120 sePray2 pray2.wav
121 seOffer2 offer2.wav

Turn Results

HSP label OpenNefia identifier
*pc_turn "player_turn_query"
*turn_end "turn_end"
*main "turn_begin"

The following are only used inside elona_sys.inventory_proto callbacks:

HSP label OpenNefia identifier
*com_inventory_loop "inventory_continue"
*com_inventory "inventory_continue"

Equipment Types

HSP Index OpenNefia
eqNothing 0 (nil)
eqWarrior 1 elona.warrior
eqMage 2 elona.mage
eqArcher 3 elona.archer
eqGunner 4 elona.gunner
eqWarMage 5 elona.war_mage
eqPriest 6 elona.priest
eqThief 7 elona.thief
eqClaymore 8 elona.claymore

Loot Types

HSP Index OpenNefia
loot0 0 (nil)
lootAnimal 1 elona.animal
lootInsect 2 elona.insect
lootHumanoid 3 elona.humanoid
lootDrake 4 elona.drake
lootDragon 5 elona.dragon
lootLich 6 elona.lich

Initial Equipment

HSP OpenNefia
eqHelm "helmet"
eqWeapon1 "primary_weapon"
eqShield "shield"
eqRange "ranged_weapon"
eqAmmo "ammo"
eqWeapon2 "secondary_weapon"
eqArmor "armor"
eqGlove "gloves"
eqBoots "boots"
eqCloack "cloak"
eqGirdle "girdle"
eqRing1 "ring_1"
eqRing2 "ring_2"
eqAmulet1 "amulet_1"
eqAmulet2 "amulet_2"