Skip to content

Python builtin tpdp module

Dude McDude edited this page Sep 19, 2016 · 31 revisions

The tpdp module is a new Temple+ builtin module used for exposing many ToEE data types. You can see the contents by typing in the game console

import tpdp
dir(tpdp)

Or, just check out the CPP file:
python_dispatcher.cpp

Data Types

BonusList

AttackPacket

DamagePacket

SpellEntry

SpellPacket

TurnBasedStatus

D20Action

D20SpellData

MetaMagicData

Event Objects

EventObjD20Query

Used for d20_query calls.

  • return_val - integer return value
  • data1 - generic piece of data. Can be a C++ pointer to another object.
  • data2 - second generic piece of data
  • get_spell_packet() - Used for CasterLevelMod events to get a SpellPacket from the data1 field

EventObjD20Signal

EventObjBonusList

EventObjObjectBonus

EventObjSavingThrow

EventObjAttack

EventObjDamage

EventObjGetAttackDice

Used for getting the critter's attack dice

EventObjD20Action

Used for D20 Action Checks/Performance events and obtaining number of attacks (base/bonus/natural)

EventObjTurnBasedStatus

EventObjSpellEntry

EventObjSpellCaster

Used for retrieving spell caster specs. New for Temple+!

EventObjTooltip

Tooltip event for mouse-overed objects.

EventObjEffectTooltip

Used creating status effect indicators in the party portrait row and their associated tooltips.

EventObjObjectEvent

Used for Object Events (triggered by entering/leaveing AoE)

EventObjModifier

EventObjDispelCheck

Dispel Check Event

EventObjImmunityTrigger

Used for triggering the immunity handling query

EventObjMoveSpeed

Used for getting move speed, and also for model size scaling with Temple+.

EventObjGetAbilityLoss

Used for Ability Loss status

EventObjReflexSaveThrow

Used for Reflex Save throws that reduce damage.

Clone this wiki locally