Skip to content

Commit

Permalink
Add Project Infinity support
Browse files Browse the repository at this point in the history
  • Loading branch information
Argent77 committed Jan 3, 2021
1 parent 69405e3 commit be8c23d
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 155 deletions.
45 changes: 45 additions & 0 deletions A7-TotLM-BG2EE/A7-TotLM-BG2EE.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# File encoding: preferred UTF8 (no BOM) if unicode characters are present, it can be ANSI for English-only
# File format: ini as default and then HJSON/JSON5/JSONC/JSON (JSON doesn't allow comments) for advanced modders who want to use benefits of those file formats
# File name: it must be the same as tp2 name: MyMod.tp2 => MyMod.ini (.hjson/.json5/.jsonc/.json)
# File location: the same folder where .tp2 file is present
# File content: every key=value pair is optional, key names are case insensitive

# ini section header is required to avoid false detection
[Metadata]

# Full name of the mod, without version number
Name = Trials of the Luremaster for Baldur's Gate
# Author name or nick, don't use email address
Author = Argent77

# Short description of the mod, main goals, features etc
Description = The Icewind Dale expansion "Trials of the Luremaster" made available to BG2:EE, Siege of Dragonspear and EET (Enhanced Edition Trilogy).

# Web address of mod readme file (filename is case-sensitive!) You can link to txt, md, html, pdf etc.
Readme = https://argent77.github.io/A7-TotLM-BG2EE/index.html

# Web address of mod dedicated forum or forum thread
Forum = http://www.shsforums.net/forum/669-trials-of-the-luremaster-for-bg2ee/, https://forums.beamdog.com/discussion/73701/

# Web address of mod personal Homepage, no need to duplicate with a mod dedicated forum
# Homepage = https://www.example.com

# if you use Github.com, simply use https://github.com/AccountOrOrgName/RepositoryName
# read more about Delta Updates https://github.com/ALIENQuake/ProjectInfinity/wiki/Delta-Updates-for-mods-hosted-at-Github
Download = https://github.com/Argent77/A7-TotLM-BG2EE

# Dynamic Install Order Category
Type = Quests

# This mod has to be installed *before* the mods listed after the keyword
# Before =

# This mod has to be installed *after* the mods listed after the keyword
# After =

# The listed mods are required to be installed *before* this mod
# Require-Earlier =

# The listed mods are required to be installed *after* this mod
# Require-Later =
155 changes: 155 additions & 0 deletions A7-TotLM-BG2EE/A7-TotLM-BG2EE.tp2
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
BACKUP ~A7-TotLM-BG2EE/backup~
SUPPORT ~http://www.shsforums.net/forum/669-trials-of-the-luremaster-for-bg2ee/~
VERSION ~2.1~

ALWAYS
INCLUDE ~%MOD_FOLDER%/lib/eet.tph~
END

README ~%MOD_FOLDER%/readme/readme-%LANGUAGE%.html~
~%MOD_FOLDER%/readme/readme-%LANGUAGE%.txt~
~%MOD_FOLDER%/readme/readme.html~
~%MOD_FOLDER%/readme/readme.txt~

LANGUAGE ~English~
~english~
~A7-TotLM-BG2EE/languages/english/setup.tra~
~A7-TotLM-BG2EE/languages/english/iwdee.tra~
~A7-TotLM-BG2EE/languages/english/bg2ee.tra~
~A7-TotLM-BG2EE/languages/english/extra.tra~
LANGUAGE ~Francais (by Gwendolyne)~
~french~
~A7-TotLM-BG2EE/languages/english/setup.tra~
~A7-TotLM-BG2EE/languages/english/iwdee.tra~
~A7-TotLM-BG2EE/languages/english/bg2ee.tra~
~A7-TotLM-BG2EE/languages/english/extra.tra~
~A7-TotLM-BG2EE/languages/french/setup.tra~
~A7-TotLM-BG2EE/languages/french/iwdee.tra~
~A7-TotLM-BG2EE/languages/french/bg2ee.tra~
~A7-TotLM-BG2EE/languages/french/extra.tra~
LANGUAGE ~Deutsch~
~german~
~A7-TotLM-BG2EE/languages/english/setup.tra~
~A7-TotLM-BG2EE/languages/english/iwdee.tra~
~A7-TotLM-BG2EE/languages/english/bg2ee.tra~
~A7-TotLM-BG2EE/languages/english/extra.tra~
~A7-TotLM-BG2EE/languages/german/setup.tra~
~A7-TotLM-BG2EE/languages/german/iwdee.tra~
~A7-TotLM-BG2EE/languages/german/bg2ee.tra~
~A7-TotLM-BG2EE/languages/german/extra.tra~
LANGUAGE ~Italiano (by Aedan and improbabile)~
~italian~
~A7-TotLM-BG2EE/languages/english/setup.tra~
~A7-TotLM-BG2EE/languages/english/iwdee.tra~
~A7-TotLM-BG2EE/languages/english/bg2ee.tra~
~A7-TotLM-BG2EE/languages/english/extra.tra~
~A7-TotLM-BG2EE/languages/italian/setup.tra~
~A7-TotLM-BG2EE/languages/italian/iwdee.tra~
~A7-TotLM-BG2EE/languages/italian/bg2ee.tra~
~A7-TotLM-BG2EE/languages/italian/extra.tra~
LANGUAGE ~Russian (by EugVV)~
~russian~
~A7-TotLM-BG2EE/languages/english/setup.tra~
~A7-TotLM-BG2EE/languages/english/iwdee.tra~
~A7-TotLM-BG2EE/languages/english/bg2ee.tra~
~A7-TotLM-BG2EE/languages/english/extra.tra~
~A7-TotLM-BG2EE/languages/russian/setup.tra~
~A7-TotLM-BG2EE/languages/russian/iwdee.tra~
~A7-TotLM-BG2EE/languages/russian/bg2ee.tra~
~A7-TotLM-BG2EE/languages/russian/extra.tra~
LANGUAGE ~Espanol (by Chidojuan)~
~spanish~
~A7-TotLM-BG2EE/languages/english/setup.tra~
~A7-TotLM-BG2EE/languages/english/iwdee.tra~
~A7-TotLM-BG2EE/languages/english/bg2ee.tra~
~A7-TotLM-BG2EE/languages/english/extra.tra~
~A7-TotLM-BG2EE/languages/spanish/setup.tra~
~A7-TotLM-BG2EE/languages/spanish/iwdee.tra~
~A7-TotLM-BG2EE/languages/spanish/bg2ee.tra~
~A7-TotLM-BG2EE/languages/spanish/extra.tra~
LANGUAGE ~Polish~
~polish~
~A7-TotLM-BG2EE/languages/english/setup.tra~
~A7-TotLM-BG2EE/languages/english/iwdee.tra~
~A7-TotLM-BG2EE/languages/english/bg2ee.tra~
~A7-TotLM-BG2EE/languages/english/extra.tra~
~A7-TotLM-BG2EE/languages/polish/setup.tra~
~A7-TotLM-BG2EE/languages/polish/iwdee.tra~
~A7-TotLM-BG2EE/languages/polish/bg2ee.tra~
~A7-TotLM-BG2EE/languages/polish/extra.tra~


BEGIN @1000000 // Trials of the Luremaster for Baldur's Gate
REQUIRE_PREDICATE (GAME_IS ~bg2ee~ || GAME_INCLUDES ~sod~) @1100000 // Requires SoD, BG2:EE or EET.
REQUIRE_PREDICATE (VALID_SCRIPT_TRIGGERS ~NearLocation(Myself,0,0,0) NearSavedLocation(Myself,"x",0)~ &&
VALID_SCRIPT_ACTIONS ~ZoomLock(0)~) @1100001 // Requires game patched to 2.0 or later.
DESIGNATED 0

INCLUDE ~%MOD_FOLDER%/lib/functions.tph~
INCLUDE ~%MOD_FOLDER%/lib/prereqs.tph~
INCLUDE ~%MOD_FOLDER%/lib/music.tph~
INCLUDE ~%MOD_FOLDER%/lib/areas.tph~
INCLUDE ~%MOD_FOLDER%/lib/projectiles.tph~
INCLUDE ~%MOD_FOLDER%/lib/spells.tph~
INCLUDE ~%MOD_FOLDER%/lib/items.tph~
INCLUDE ~%MOD_FOLDER%/lib/creatures.tph~
INCLUDE ~%MOD_FOLDER%/lib/stores.tph~
INCLUDE ~%MOD_FOLDER%/lib/compile.tph~
INCLUDE ~%MOD_FOLDER%/lib/misc.tph~

// Make IWD spells available to the player
ACTION_IF (MOD_IS_INSTALLED ~setup-stratagems.tp2~ ~1500~ ||
MOD_IS_INSTALLED ~setup-iwdification.tp2~ ~30~) BEGIN
PRINT @1100003 // Skipping: Make IWD spells available to the player. This feature is already installed by another mod.
END ELSE BEGIN
INCLUDE ~%MOD_FOLDER%/lib/spells_player.tph~
END

// Original weapons and equipment are way too overpowered for SoD
ACTION_IF (GAME_IS ~bgee~) BEGIN
INCLUDE ~%MOD_FOLDER%/lib/sub-nerf_items.tph~
END


BEGIN @1000100 // Rebalance weapons and equipment
REQUIRE_COMPONENT ~a7-totlm-bg2ee.tp2~ ~0~ @1100002 // Requires the main component to be installed.
REQUIRE_PREDICATE (NOT GAME_IS ~bgee~) @1100005 // Already installed by the main component.
DESIGNATED 20

INCLUDE ~%MOD_FOLDER%/lib/sub-nerf_items.tph~


BEGIN @1000201 // Reduce by 25 percent
REQUIRE_COMPONENT ~a7-totlm-bg2ee.tp2~ ~0~ @1100002 // Requires the main component to be installed.
SUBCOMPONENT @1000200 // Reduce experience from monsters and quests
DESIGNATED 30

INCLUDE ~%MOD_FOLDER%/lib/sub-nerf_xp.tph~
LAF REDUCE_EXPERIENCE INT_VAR scale = 75 END


BEGIN @1000202 // Reduce by 50 percent
REQUIRE_COMPONENT ~a7-totlm-bg2ee.tp2~ ~0~ @1100002 // Requires the main component to be installed.
SUBCOMPONENT @1000200 // Reduce experience from monsters and quests
DESIGNATED 31

INCLUDE ~%MOD_FOLDER%/lib/sub-nerf_xp.tph~
LAF REDUCE_EXPERIENCE INT_VAR scale = 50 END


BEGIN @1000203 // Reduce by 75 percent
REQUIRE_COMPONENT ~a7-totlm-bg2ee.tp2~ ~0~ @1100002 // Requires the main component to be installed.
SUBCOMPONENT @1000200 // Reduce experience from monsters and quests
DESIGNATED 32

INCLUDE ~%MOD_FOLDER%/lib/sub-nerf_xp.tph~
LAF REDUCE_EXPERIENCE INT_VAR scale = 25 END


BEGIN @1000204 // No experience
REQUIRE_COMPONENT ~a7-totlm-bg2ee.tp2~ ~0~ @1100002 // Requires the main component to be installed.
SUBCOMPONENT @1000200 // Reduce experience from monsters and quests
DESIGNATED 33

INCLUDE ~%MOD_FOLDER%/lib/sub-nerf_xp.tph~
LAF REDUCE_EXPERIENCE INT_VAR scale = 0 END
155 changes: 0 additions & 155 deletions A7-TotLM-BG2EE/setup-A7-TotLM-BG2EE.tp2

This file was deleted.

0 comments on commit be8c23d

Please sign in to comment.