List of components and methods

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

List of components and methods

Post by JKos »

I spent a couple of hours with hex-editor and notepad++ (regexp replace), and here are the results.

I'm pretty sure that the method/function argument types are in wrong order and that there is some other errors with arguments since sometimes they were listed after the method and sometimes before. But other than that, this should be pretty complete list.
(With my luck I'm sure that AH will release official scripting reference tomorrow :D , but what is done is done, and it was actually kind of fun.)

Code: Select all


---------------------------------------------
class MaterialEx

setParam(number,string)
setTexture(string,string)
setTexcoordScaleOffset(number,number,number,number)
methods


---------------------------------------------
class Map

getWidth
getHeight
isWall(number,number)
isObstacle(number,number,number)
isBlocked(number,number,number)
checkObstacle(number,GameObject)
checkObstacle2(number,number,number,number,GameObject)
entitiesAt(number,number)
allEntities
getElevation(number,number)
setAutomapTile(number,number,number)
getAutomapTile(number,number)


---------------------------------------------
class GameObject

createComponent(string)
removeComponent(string)
getComponent(string)
setPosition(number,number,number,number,number)
setWorldPosition(number,number,number,number,number)
setWorldPositionY(number)
setWorldRotationAngles(number,number,number)
$setWorldRotationAnglesWithOrder(string,number,number,number)
setSubtileOffset(number,number)
getPosition
getWorldPosition
getWorldPositionY
getElevation
getSubtileOffset
spawn(string)
playSound(string)
destroy
destroyDelayed
name
id
map
level
elevation
facing
y
x
properties


---------------------------------------------
class PartyComponent

heal
rest(boolean)
wakeUp
isResting
isMoving
isFalling
isClimbing(string)
isCarrying
swapChampions(number,number,number)
getChampion(number)
getChampionByOrdinal(string)
playScreenEffect
shakeCamera(number,number,number)
knockback(number)
grapple
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class Champion

setEnabled(boolean)
setName(string)
setRace(string)
setSex(string)
setClass(string)
setHealth(number)
getEnabled
getName
getRace
getSex
getClass
getDualClass
getLevel
getOrdinal
setPortrait(string)
isAlive
gainExp(number)
levelUp
getSkillPoints
addSkillPoints(number)
getSkillLevel(string)
trainSkill(number,string,string)
addTrait(string)
removeTrait
hasTrait(string)
setFood(number)
getFood
consumeFood(number)
modifyFood(number)
setCondition(string)
removeCondition(string)
hasCondition(string)
setConditionValue(number,string,string)
getConditionValue
damage(string,number)
playDamageSound(string)
playSound
showAttackResult(string,any)
setBaseStat(number,string)
modifyBaseStat(number,string)
upgradeBaseStat(number,string)
addStatModifier(number,string,string)
getBaseStat(string)
getCurrentStat(number)
regainHealth(number)
regainEnergy(number)
getHealth
getMaxHealth
getEnergy
getMaxEnergy
getProtection
getEvasion(string)
getResistance
getLoad
getMaxLoad(string)
getArmorSetPiecesEquipped(string)
isArmorSetEquipped
insertItem(ItemComponent,number,ItemComponent)
removeItem(number)
removeItemFromSlot(number)
getItem(number)
getOtherHandItem
playHealingIndicator


---------------------------------------------
class ModelComponent

setModel(string)
setCastShadow(boolean)
setMaterial(string)
setReflection(boolean)
setRenderHack(string)
setDissolveStart(number)
setDissolveEnd(number)
setShadowLod(number)
setEmissiveColor(vec)
setSortOffset(number)
setDebugDraw(boolean)
setMaterialOverrides(table)
setStaticShadow(boolean)
setStoreSourceData(boolean)
getModel
getCastShadow
getMaterial
getReflection
getRenderHack
getDissolveStart
getDissolveEnd
getShadowLod
getEmissiveColor
getSortOffset
getDebugDraw
getMaterialOverrides
getStaticShadow
getStoreSourceData
updateLods
dumpMaterials
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class AnimationComponent

setLoop(boolean)
setMaxUpdateDistance(number)
setPlayOnInit(string)
setCurrentLevelOnly(boolean)
getLoop
getMaxUpdateDistance
getPlayOnInit
getCurrentLevelOnly
play(string)
crossfade
sample(number,string)
stop
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class LightComponent

setRange(number)
setSpotAngle(number)
setSpotSharpness(number)
setColor(vec)
setBrightness(number)
setCastShadow(boolean)
setStaticShadows(boolean)
setStaticShadowDistance(number)
setClipDistance
setFadeOut(number,number,number)
setDisableSelf(boolean)
setDestroyObject(boolean)
setColor2(vec)
setColor3(vec)
setDebugDraw(boolean)
setDirection(vec)
setShadowMapSize(number)
setType(string)
getRange
getSpotAngle
getSpotSharpness
getColor
getBrightness
getCastShadow
getStaticShadows
getStaticShadowDistance
getClipDistance
getFadeOut
getDisableSelf
getDestroyObject
getColor2
getColor3
getDebugDraw
getDirection
getShadowMapSize
getType
fadeIn(number)
fadeOut(number)
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ParticleComponent

setParticleSystem(string)
setDisableSelf(boolean)
setDestroyObject(boolean)
setFadeOut(number)
setDebugDraw(boolean)
setDestroySelf(boolean)
setEmitterMesh(string)
setSortOffset(number)
getParticleSystem
getDisableSelf
getDestroyObject
getDebugDraw
getDestroySelf
getEmitterMesh
getSortOffset
fadeOut(number)
fadeIn(number)
restart
start
stop
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class SoundComponent

setSound(string)
setVolume(number)
setSoundType(string)
setPitch(number)
getSound
getVolume
getSoundType
getPitch
play(string)
stop
fadeOut(number)
fadeIn(number)
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class LeverComponent

setState(string)
setDisableSelf(boolean)
setSound(string)
getDisableSelf
getSound
isActivated
isDeactivated
toggle
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class LockComponent

setOpenedBy(string)
setSound(string)
getOpenedBy
getSound
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class SpawnerComponent

setSpawnedEntity(string)
setMonsterLevel(number)
setCooldown(number)
setDisableSelf(boolean)
getSpawnedEntity
getMonsterLevel
getCooldown
getDisableSelf
activate
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class PitComponent

setState(string)
getState
isOpen
isClosed
open
close
toggle
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class CounterComponent

setInitialValue(number)
setValue(number)
getValue
reset
increment
decrement
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ControllerComponent

setInitialState(string)
getInitialState
activate
deactivate
toggle
open
close
increment
decrement
reset
start
stop
pause
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class TimerComponent

setTimerInterval(number)
setDisableSelf(boolean)
setTriggerOnStart(boolean)
setCurrentLevelOnly(boolean)
getTimerInterval(number)
getDisableSelf
getTriggerOnStart
getCurrentLevelOnly
start
stop
pause
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class WallTextComponent

setWallText(string)
setHeight(number)
getWallText
getHeight
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ButtonComponent

setDisableSelf(boolean)
setSound(string)
getDisableSelf
getSound
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class FloorTriggerComponent

setActivateSound(string)
setDeactivateSound(string)
setPressurePlate(boolean)
setTriggeredByParty(boolean)
setTriggeredByMonster(boolean)
setTriggeredByItem(boolean)
setTriggeredByDigging(boolean)
 setTriggeredByPushableBlock(boolean)
setTriggeredByEntityType(string)
setDisableSelf(boolean)
getActivateSound
getDeactivateSound
getPressurePlate
getTriggeredByParty
getTriggeredByMonster
getTriggeredByItem
getTriggeredByDigging
 getTriggeredByPushableBlock
getTriggeredByEntityType
getDisableSelf
isActivated
isDeactivated
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class WallTriggerComponent

setEntityType(string)
getEntityType
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class TeleporterComponent

setTriggeredByParty(boolean)
setTriggeredByMonster(boolean)
setTriggeredByItem(boolean)
setTriggeredBySpell(boolean)
setSpin(string)
setTeleportTarget
getTriggeredByParty(number,number,number,number)
getTriggeredByMonster
getTriggeredByItem
getTriggeredBySpell
getTeleportTarget
getSpin
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class StairsComponent

setTeleportTarget
setDirection(number,number,number,number,string)
getTeleportTarget
getDirection
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class SocketComponent

setDebugDraw(boolean)
getDebugDraw
ItemComponent
addItem
count
getItem
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class SurfaceComponent

setDebugDraw(boolean)
setSize(vec)
getDebugDraw
getSize
ItemComponent
addItem
count
enable
disable
isEnabled
addConnector(string,string,string)
class#TorchHolderControllerComponent
setHasTorch(boolean)
getHasTorch
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class SkyComponent

setFogRange(table)
setAmbientIntensity(number)
setFarClip(number)
setFogColor1(vec)
setFogColor2(vec)
setFogColor3(vec)
setFogMode(string)
setSunColor1(vec)
setSunColor2(vec)
setSunColor3(vec)
setTonemapSaturation(number)
getFogRange
getAmbientIntensity
getFarClip
getFogColor1
getFogColor2
getFogColor3
getFogMode
getSunColor1
getSunColor2
getSunColor3
getTonemapSaturation
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class DoorComponent

setCloseAcceleration(number)
setCloseSound(string)
setCloseVelocity(number)
setDoorState(string)
setDoubleDoor(boolean)
setKillPillars(boolean)
setLockSound(string)
setMaxHeight(number)
setOpenSound(string)
setOpenVelocity(number)
setOpeningDirection(string)
setPullChain(boolean)
setPullchainObject(string)
setSecretDoor(boolean)
setSparse(boolean)
setHitSound(string)
getCloseAcceleration
getCloseSound
getCloseVelocity
getDoorState
getDoubleDoor
getKillPillars
getLockSound
getMaxHeight
getOpenSound
getOpenVelocity
getOpeningDirection
getPullChain
getPullchainObject
getSecretDoor
getSparse
getHitSound
open
close
toggle
isOpen
isOpening
isClosed
isClosing
isPassable
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class TileDamagerComponent

setAttackPower(number)
setDamageType(string)
setSound
setScreenEffect(string)
setCastByChampion(number)
setDestroyObject(number)
setCameraShake(boolean)
setDamageFlags(number)
setRepeatCount(number)
setRepeatDelay(number)
getAttackPower
getDamageType
getSound
getScreenEffect
getCastByChampion
getDestroyObject
getCameraShake
getDamageFlags
getRepeatCount
getRepeatDelay
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class CloudSpellComponent

setAttackPower(number)
setDamageInterval(number)
setDamageType(string)
setDuration(number)
setSound(string)
setCastByChampion(number)
getAttackPower
getDamageInterval
getDamageType
getDuration
getSound
getCastByChampion
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class IceShardsComponent

setDelay(number)
setRange(number)
getDelay
getRange
grantTemporaryImmunity
GameObject(number)
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ProjectileComponent

setVelocity(number)
setAngularVelocity(number)
setFallingVelocity(number)
setGravity(number)
setAttackPower(number)
setRadius(number)
any
any
setIgnoreEntity
setCastByChampion(boolean)
setCollisionMask(number)
setDestroyOnImpact(boolean)
setHitEffect(string)
setSpawnOffsetY(number)
getVelocity
getAngularVelocity
getFallingVelocity
getGravity
getAttackPower
getRadius
getCastByChampion
getCollisionMask
getDestroyOnImpact
getHitEffect
getSpawnOffsetY
pushForward
enable
disable
isEnabled
addConnector(string,string,string)
---------------------------------------------
class ProjectileColliderComponent

setSize(vec)
setOffset(vec)
setDebugDraw(boolean)
setCollisionGroup(number)
getSize
getOffset
getDebugDraw
getCollisionGroup
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ProjectileImpactComponent

enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MonsterGroupComponent

setMonsterType(string)
setCount(number)
setAIState(string)
setLevel(number)
getMonsterType
getCount
getAIState
getLevel
spawnNow
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ObstacleComponent

setBlockParty(boolean)
setBlockMonsters(boolean)
setBlockItems(boolean)
setHitSound(string)
setHitEffect(string)
setRepelProjectiles(boolean)
getBlockParty
getBlockMonsters
getBlockItems
getHitSound
getHitEffect
getRepelProjectiles
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MonsterComponent

setAIState(string)
setHealth(number)
setMaxHealth(number)
setLevel(number)
setCondition(string)
setCapsuleHeight(number)
setCapsuleRadius(number)
setCollisionRadius(number)
setDeathEffect(string)
setDieSound
setEvasion(number)
setExp(number)
setFlying(boolean)
setFootstepSound(string)
setHitEffect(string)
setHitSound(string)
setIdleAnimation(string)
setImmunities(table)
setLootDrop(table)
setMeshName(string)
setHeadRotation(vec)
setProtection(number)
setResistances(table)
setShape(string)
setSwarm(boolean)
setMonsterFlag
getHealth(boolean,string)
getMaxHealth
getLevel
getCapsuleHeight
getCapsuleRadius
getCollisionRadius
getDeathEffect
getDieSound
getEvasion
getExp
getFlying
getFootstepSound
getGroupSize
getHitEffect
getHitSound
getIdleAnimation
getImmunities
getLootDrop
getMeshName
getHeadRotation
getProtection
getResistance
getShape
getSwarm
getCurrentAction
getMonsterFlag(string)
ItemComponent
addItem
ItemComponent
removeItem
dropAllItems
performAction(string)
moveForward
moveBackward
turnLeft
turnRight
strafeLeft
strafeRight
attack
shootProjectile
throwItem(number,number,string)
showDamageText(number,number,string)
die(string)
isInBackRow
isIdle
isAlive
isChangingAltitude
isFalling
isGroupLeader
isImmuneTo(string)
isInvulnerable
isMoving
isPerformingAction(string)
isReadyToAct
knockback(number)
setTraits(table)
addTrait(string)
removeTrait(string)
hasTrait(string)
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class PoisonedMonsterComponent

setCausedByChampion(number)
getCausedByChampion
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class BurningMonsterComponent

setCausedByChampion(number)
getCausedByChampion
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MonsterActionComponent

setCooldown(number)
setAnimation(string)
getCooldown
getAnimation
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MonsterMoveComponent

setCooldown(number)
setAnimations(table)
setMoveForwardAnimation(string)
setMoveBackwardAnimation(string)
setStrafeLeftAnimation(string)
setStrafeRightAnimation(string)
setAnimationSpeed(number)
setDashChance(number)
setResetBasicAttack(boolean)
setSound(string)
setStrafeLeft(boolean)
setStrafeRight(boolean)
setTurnDir(number)
getCooldown
getAnimations
getMoveForwardAnimation
getMoveBackwardAnimation
getStrafeLeftAnimation
getStrafeRightAnimation
getAnimationSpeed
getDashChance
getResetBasicAttack
getSound
getStrafeLeft
getStrafeRight
getTurnDir
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MonsterTurnComponent

setCooldown(number)
setAnimations(table)
setTurnLeftAnimation(string)
setTurnRightAnimation(string)
setTurnAroundAnimation(string)
setAnimationSpeed(number)
setResetBasicAttack(boolean)
setSound(string)
getTurnLeftAnimation
getTurnRightAnimation
getTurnAroundAnimation
getCooldown
getAnimations
getAnimationSpeed
getResetBasicAttack
getSound
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MonsterAttackComponent

setCooldown(number)
setAnimation(string)
setAnimations(table)
!setAttackFromBehindAnimation(string)
setAnimationSpeed(number)
setSound(string)
setImpactSound(string)
setAttackType(string)
setAttackPower(number)
setAccuracy(number)
setCauseCondition(table)
setDirection(number)
setChangeFacing(number)
setShootProjectile(string)
setProjectileHeight(number)
setCameraShake(boolean)
setKnockback(boolean)
setScreenEffect(string)
setCameraShakeIntensity(number)
setConditionChance(number)
setReach(number)
setRepeatChance(number)
setTurnToAttackDirection(boolean)
setCameraShakeDuration(number)
setMaxDistance(number)
setMinDistance(number)
setProjectileOriginNode(string)
getCooldown
getAnimation
getAnimations
!getAttackFromBehindAnimation
getAnimationSpeed
getSound
getImpactSound
getAttackType
getAttackPower
getAccuracy
getCauseCondition
getDirection
getChangeFacing
getShootProjectile
getProjectileHeight
getCameraShake
getKnockback
getScreenEffect
getCameraShakeIntensity
getConditionChance
getReach
getRepeatChance
getTurnToAttackDirection
getCameraShakeDuration
getMaxDistance
getMinDistance
getProjectileOriginNode
startCooldown
resetCooldown
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MonsterChargeComponent

setCooldown(number)
setAttackPower(number)
setSound(string)
getCooldown
getAttackPower
getSound
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class BrainComponent

setSight(number)
setSeeInvisible(boolean)
setAllAroundSight(boolean)
setMorale(number)
startGuarding
stopGuarding
startFleeing
stopFleeing
getSight
getSeeInvisible
getAllAroundSight
getMorale
isSafeTile
performAction(number,number,string)
moveForward
moveBackward
strafeLeft
strafeRight
turnLeft
turnRight
turnAround
moveTowardsParty
turnTowardsParty
turnTowardsTarget
turnTowardsDirection
pursuit
follow
seek(number,number)
flee
wander
wanderIfPartyNotDetected
wait
meleeAttack
turnAttack
turnAttackLeft
turnAttackRight
turnAroundAttack
rangedAttack
charge
circleStrafeHesitate
circleStrafeStall
carrying(string)
here(string)
pickUpItem
dropItem(boolean,string,string)
dropItemOn
operate(string,string,string)
openLockWith
goTo(string,string,string)
stepTowards
alert(number,string)
changeAltitude
enable
disable
isEnabled
addConnector
blockedLeft(string,string,string)
blockedRight
blockedBack
blockedFront
seesParty
partyDiagonal
partyAdjacent
partyRight
partyLeft
partyStraightBehind
partyStraightAhead
partyBehind
partyAhead
partyOnLevel
partyLastSeen
partyDistY
partyDistX
partyY
partyX
go
TricksterBrainComponent
class
BrainComponent
baseClass
setState(string)



---------------------------------------------
class HealthComponent

setHealth(number)
setSpawnOnDeath(string)
setDieSound(string)
setImmunities(table)
setInvulnerable(boolean)
getHealth
getSpawnOnDeath
getDieSound
getImmunities
getInvulnerable
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MapMarkerComponent

setText(string)
getText
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MapGraphicsComponent

setImage(string)
setRotate(boolean)
setOffset0(vec)
setOffset1(vec)
setOffset2(vec)
setOffset3(vec)
getImage
getRotate
getOffset0
getOffset1
getOffset2
sgetOffset3
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ItemComponent

setStackSize(number)
setMultiple(number)
setCharges(number)
setFuel(number)
setUiName(string)
setGfxIndex(number)
setAchievement(string)
setArmorSet(string)
setConvertToItemOnImpact(string)
setDescription(string)
setFitContainer(boolean)
setFragile(boolean)
setJammed(boolean)
setGameEffect(string)
setGfxAtlas(string)
setGfxIndexInHand(number)
setGfxIndexPowerAttack(number)
setImpactSound(string)
setPrimaryAction(string)
setProjectileRotationSpeed(number)
setProjectileRotationX(number)
setProjectileRotationY(number)
setProjectileRotationZ(number)
setSecondaryAction(string)
setSharpProjectile(boolean)
setStackable(boolean)
setWeight(number)
getStackSize
getMultiple
getCharges
getFuel
getWeight
getFormattedName
getUiName
getGfxIndex
getAchievement
getArmorSet
getConvertToItemOnImpact
getDescription
getFitContainer
getFragile
getJammed
getGameEffect
getGfxAtlas
getGfxIndexInHand
getGfxIndexPowerAttack
getImpactSound
getPrimaryAction
getProjectileRotationSpeed
getProjectileRotationX
getProjectileRotationY
getProjectileRotationZ
getSecondaryAction
getSharpProjectile
getStackable
getTotalWeight
setTraits(table)
addTrait(string)
removeTrait(string)
hasTrait(string)
updateBoundingBox
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class AmmoItemComponent

setAmmoType(string)
setAttackPower(number)
getAmmoType
getAttackPower
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class BombItemComponent

setBombType(string)
setBombPower(number)
getBombType
getBombPower
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class UsableItemComponent

setSound(string)
setNutritionValue(number)
setEmptyItem(string)
setCanBeUsedByDeadChampion(boolean)
setRequirements(table)
getSound
getNutritionValue
getEmptyItem
getCanBeUsedByDeadChampion
getRequirements
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ScrollItemComponent

setScrollText(string)
setScrollImage(string)
setTextAlignment(string)
getScrollText
getScrollImage
getTextAlignment
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class SpellScrollItemComponent

setSpell(string)
getSpell
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ContainerItemComponent

setContainerType(string)
getCapacity
getContainerType
getItemCount
ItemComponent
addItem
insertItem
ItemComponent
ItemComponent(number)
removeItem
removeItemFromSlot(number)
getItem(number)
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class TorchItemComponent

setFuel(number)
getFuel
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ItemActionComponent

setBuildup(number)
setChainAction(string)
setChainActionDelay(number)
setCooldown(number)
setEnergyCost(number)
setRequirements(table)
setUiName(string)
setGameEffect(string)
setRepeatCount(number)
setRepeatDelay(number)
getBuildup
getChainAction
getChainActionDelay
getCooldown
getEnergyCost
getNextChainAction
getRequirements
getUiName
getGameEffect
getRepeatCount
getRepeatDelay
getRequirementsText
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class EquipmentItemComponent

setSlot(number)
setStrength(number)
setDexterity(number)
setVitality(number)
setWillpower(number)
setProtection(number)
setEvasion(number)
setResistFire(number)
setResistCold(number)
setResistShock(number)
setResistPoison(number)
setHealth(number)
setEnergy(number)
setExpRate(number)
setFoodRate(number)
setHealthRegenerationRate(number)
setEnergyRegenerationRate(number)
setCooldownRate(number)
setAccuracy(number)
setDamage(number)
setCriticalChance(number)
getSlot
getStrength
getDexterity
getVitality
getWillpower
getProtection
getEvasion
getResistFire
getResistCold
getResistShock
getResistPoison
getHealth
getEnergy
getExpRate
getFoodRate
getHealthRegenerationRate
getEnergyRegenerationRate
getCooldownRate
getAccuracy
getDamage
getCriticalChance
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class MeleeAttackComponent

setAttackPower(number)
setAccuracy(number)
setCooldown(number)
setSwipe(string)
setAttackSound(string)
setDamageType(string)
setReachWeapon(boolean)
setSkill(string)
setRequiredLevel(number)
setBaseDamageStat(string)
setCauseCondition(string)
setConditionChance(number)
setPierce(number)
setUnarmedAttack(boolean)
setCameraShake(boolean)
getAttackPower
getAccuracy
getCooldown
getSwipe
getAttackSound
getDamageType
getReachWeapon
getSkill
getRequiredLevel
getBaseDamageStat
getCauseCondition
getConditionChance
getPierce
getUnarmedAttack
getCameraShake
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class ThrowAttackComponent

setAttackPower(number)
setCooldown(number)
setSwipe(string)
setAttackSound(string)
setSkill(string)
setRequiredLevel(number)
setBaseDamageStat(string)
getAttackPower
getCooldown
getSwipe
getAttackSound
getSkill
getRequiredLevel
getBaseDamageStat
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class RangedAttackComponent

setAttackPower(number)
setCooldown(number)
setSwipe(string)
setAttackSound(string)
setSkill(string)
setRequiredLevel(number)
setAmmo(string)
setBaseDamageStat(string)
setDamageType(string)
setProjectileItem(string)
getAttackPower
getCooldown
getSwipe
getAttackSound
getSkill
getRequiredLevel
getAmmo
getBaseDamageStat
getDamageType
getProjectileItem
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class FirearmAttackComponent
setAttackPower(number)
setRange(number)
setCooldown(number)
setAttackSound(string)
setSkill(string)
setRequiredLevel(number)
setAccuracy(number)
setAmmo(string)
setBaseDamageStat(number)
setClipSize(number)
setDamageType(string)
setLoadedCount(number)
setPierce(number)
getAttackPower
getRange
getCooldown
getAttackSound
getSkill
getRequiredLevel
getAccuracy
getAmmo
getBaseDamageStat
getClipSize
getDamageType
getLoadedCount
getPierce
enable
disable
isEnabled
addConnector


---------------------------------------------
class CastSpellComponent
setSpell(string)
setPower(number)
setCharges(number)
setMaxCharges(number)
setEmptyItem(string)
setCooldown(number)
setSkill(string)
setRequiredLevel(number)
setFullGfxIndex(number)
setEmptyGfxIndex(number)
getSpell
getPower
getCharges
getMaxCharges
getEmptyItem
getCooldown
getSkill
getRequiredLevel
getFullGfxIndex
getEmptyGfxIndex
recharge
deplete
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class ScriptComponent
setSource(string)
loadFile(string)
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class PushableBlockComponent
push(number)
activate
deactivate
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class PushableBlockFloorComponent
setInitialState(boolean)
getInitialState
activate
deactivate
toggle
isActivated
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class SecretComponent
activate
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class ChestComponent
setLocked(boolean)
setMimic(boolean)
getLocked
getMimic
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class GoromorgShieldComponent
setEnergy(number)
getEnergy
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class%BeaconFurnaceControllerComponent
setElement(string)
getElement
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class FogParamsComponent
setFogMode(string)
setFogColor(vec)
setFogRange(table)
getFogMode
getFogColor
getFogRange
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class BlastComponent
setDelay(number)
setEffect(string)
getDelay
getEffect
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class ClickableComponent
setDebugDraw(boolean)
setFrontFacing(boolean)
setMaxDistance(number)
setOffset(vec)
setSize(vec)
getDebugDraw
getFrontFacing
getMaxDistance
getOffset
getSize
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class CrystalComponent
setCooldown(number)
getCooldown
activate
deactivate
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class FogParticlesComponent
setColor1(vec)
setColor2(vec)
setColor3(vec)
setOpacity(number)
setParticleSize(number)
setTexture(string)
getColor1
getColor2
getColor3
getOpacity
getParticleSize
getTexture
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class GravityComponent
setDestroySelf(boolean)
setFallingSpeed(number)
getDestroySelf
getFallingSpeed
isFalling
enable
disable
isEnabled
addConnector(string,string,string)


---------------------------------------------
class#TinyCritterControllerComponent
setSpeed(number)
setStrafing(boolean)
getSpeed
getStrafing
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class UggardianFlamesComponent
setEmitFromMaterial(string)
setParticleSystem(string)
getEmitFromMaterial
getParticleSystem
stop
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class WaterSurfaceComponent
setFogColor(vec)
setFogDensity(number)
setPlaneY(number)
setReflectionColor(vec)
setRefractionColor(vec)
getFogColor
getFogDensity
getPlaneY
getReflectionColor
getRefractionColor
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class WaterSurfaceMeshComponent
setMaterial(string)
setUnderwaterMaterial(string)
getMaterial
getUnderwaterMaterial
getWaterLevel
enable
disable
isEnabled
addConnector(string,string,string)

---------------------------------------------
class BossFightComponent
setBossName(string)
setMusic(string)
setAutoDeactivate(boolean)
setAchievement
getBossName
getMusic
getAutoDeactivate
getAchievement
MonsterComponent
addMonster
MonsterComponent
removeMonster
recomputeTotal
activate
deactivate
enable
disable
isEnabled
addConnector(string,string,string).+Component$

------------------------------------
Editor

.isRunning

------------------------------------
GameMode

.unlockAchievement
.setCamera
.fadeOut
.fadeIn
.advanceTime
.getTimeOfDay
.setTimeOfDay
.getEnableControls
.setEnableControls
.getTimeMultiplier
.setTimeMultiplier
.getStatistic
.getMaxStatistic
.setMaxStatistic
.showImage
.playStream
.playVideo
.completeGame

------------------------------------
Global functions

delayedCall
toLocal
getDirection
getForward
findEntity
hudPrint
getMouseItem
setMouseItem
playSoundAt
playSound
shootProjectile
damageTile
rollDamage
print
spawn



---------------------------------------------
class __proxyClass
enable
disable
isEnabled
addConnector
ScriptComponent
__index
ContainerItemComponent
contents

SurfaceComponent
SocketComponent
MonsterComponent
Champion
carriedItems
GameObject
componentIterator
Map
entitiesAt
allEntities

(Just SELECT ALL and copy paste to your own text editor)
Last edited by JKos on Thu Oct 30, 2014 4:56 pm, edited 3 times in total.
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: List of components and methods

Post by Lark »

Wow! Fantastic! This will save me hours and hours of guessing! THANK YOU!!!! :D
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: List of components and methods

Post by NutJob »

How do I PayPal you?!?!?! =)
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: List of components and methods

Post by cromcrom »

Great, thanks. No Wonder it takes time for AH to add all this to the mod part, explaining all this will take ages...
A trip of a thousand leagues starts with a step.
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: List of components and methods

Post by Jouki »

praise the lord praise the JKos! =)))
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: List of components and methods

Post by NutJob »

Wait! getOrdinal()?!?!?!?!? ...so, are you saying I have to rewrite all my scripts again because I had to get hacky! rawrg!
Last edited by NutJob on Mon Oct 27, 2014 11:55 pm, edited 1 time in total.
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: List of components and methods

Post by Jouki »

NutJob wrote:Wait! getOrdinal()?!?!?!?!? ...so, are you saying I have to rewrite all my scripts again because I had get hacky! rawrg!
I'm dumb. What's goin on?
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: List of components and methods

Post by NutJob »

It'll provide a unique identifier to the character instead of a dynamic key derived from character position.
Sertorius
Posts: 5
Joined: Sat Oct 25, 2014 7:16 am

Re: List of components and methods

Post by Sertorius »

I'm a total mod newbie and have sorted out very little about scripts and lua in general (just got my very first lua viewer/editor today), but I have a feeling I should copy this to a txt file! Thanks!
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: List of components and methods

Post by Leki »

[quote="JKos"]I spent a couple of hours with hex-editor and notepad++ (regexp replace), and here are the results.

Image
I'm the Gate I'm the Key.
Dawn of Lore
Post Reply