Fade on 2/5/2004 at 09:29
I know how to use the in-game console for basic effects (ra, player -> additem etc), but does anyone know of a guide to all the various commands that can be used in it? How, for example, do you manipulate an NPC's inventory (add/remove items)?
Pisces on 2/5/2004 at 10:03
Well with the console open you can click on items, NPC's, trees etc(basically everything) and it will come up with the item's ID and then from them on all scripts will effect that item unless...
You address the script, which is basically what you do in "player->additem" the 'player' bit is the address so the next code will effect the player. You can change the player bit to something else like the NPC's ID; if there is a space in the ID then you need to use brackets. Then the next code will effect them so with additem or removeitem(I think thats the code) you can edit their inventory, same with addspell... the enable and disable codes, setfight, setflee etc. and the millions of other codes. And here are a just few:
AI
AiActivate , ObjectID, [reset]
AiEscort, ActorID, duration, x, y, z, [reset]
AiEscortCell, ActorID, CellID, duration, x, y, z, [reset]
AiFollow, ActorID, duration, x, y, z, [reset]
AiFollowCell, ActorID, CellID, duration, x, y, z, [reset]
AiTravel, x, y, z, [reset]
AiWander, range, duration, time, [idle2], [idle3], …[idle9], [reset]
ForceSneak Make the npc sneak if he wanted to run he will only walk
ClearForceSneak
-Animation
PlayGroup, GroupName, [Flags]
LoopGroup, GroupName, Number, [Flags]
SkipAnim
StartCombat, ActorID
StopCombat
-Dialogue
AddTopic, TopicID Adds TopicID to PC’s list of known topics
ClearInfoActor Makes this info NOT appear in the journal.
ForceGreeting makes the NPC start dialogue with the PC. Does NOT matter where the NPC is.
GetJournalIndex, JournalID
Goodbye Ends current dialogue, PC can only press “Bye”
Journal, ID, Index Adds the index entry into the journal for the journal ID
-Faction
LowerRank Lowers the object’s rank in its current faction.
ModPCFacRep, var, [FactionID]
ModFactionReaction, factionID1, factionID2, var
PCClearExpelled Clears currently expelled flag.
PCExpell [FactionID] Expells PC from NPCs faction.
PCJoinFaction [FactionID]_______ FactionID is optional if it is not added it will use the faction of the npc who called the function
PCLowerRank
PCRaiseRank Raises the PC 1 rank in the NPCs faction. If pc is not part of the faction, makes rank 1
RaiseRank Raises the object’s rank in its current faction.
SetPCFacRep, var, [FactionID]
SetFactionReaction, factionID1, factionID2, var
-Item/Object
AddItem, ObjectID, count adds item to calling objects inventory
Activate activates the item (uses it’s default activation)
Drop, ObjectID, count calling Actor drops item into world at his feet.
Equip, ObjectID equips the calling item on its owner
RemoveItem, objectID, count removes the item from the calling object. Does NOT drop it.
-Magic
AddSoulgem, CreatureID, SoulgemID
AddSpell, SpellID adds spell item to calling object
Cast, SpellID, TargetID calling object casts spell onto target, spells only.
DropSoulgem, CreatureID
DisableTeleporting
EnableTeleporting
RemoveSoulgem, CreatureID
RemoveSpell, SpellID remove spell item from calling objects inventory
RemoveSpellEffects, SpellID remove spell effects of SpellID from effecting the calling object
RemoveEffects, Effect removes all spells with the EffectEnum from effecting the calling object
-Miscellaneous
Enable Makes the object visible and processed.
DontSaveObject Call when you do not want object change in save game.
Disable Makes the object invisible and it will not be processed.
FadeIn time time is > 0 and <= 10.0
FadeOut time same as fade in
FadeTo alpha speed FadeTo 50 2.0 (Fades screen to 50% in 2 seconds). 0 is full transparency. 100 is black.
Lock, Var sets the door or container to the specified lock level.
MessageBox, “Message”, [var1], [var2], [“button1”], [“button2”]
PlayBink “filename” flag Pauses game and plays video. Set Flag to true if player can escape movie.
ShowMap cellID show all the cells that start with this string on the world map
Unlock makes object unlocked, doors and containers only
-Movement
Move, axis, units/sec
MoveWorld, axis, units/sec
PlaceAtPC, ObjectID, count, distance, direction
Rotate , axis, angle/sec
RotateWorld, axis, angle/sec
Position, x, y, z, zRot
PositionCell, x, y, z, zRot, “cellID”
SetAtStart
SetAngle, axis, angle
SetPos, axis, pos
-Player controls
EnableLevelUpMenu
EnablePlayerControls Enables the controls and menus.
EnablePlayerJumping
EnablePlayerFighting
EnablePlayerLooking
EnablePlayerMagic
EnablePlayerViewSwitch
EnableRest
EnableVanityMode
PCForce3rdPerson queue the change to 3rd person mode (this may have to
wait for the animation to finish)
PCForce1stPerson same as above but 1st person mode
-Script
ScriptRunning, ScriptName
StartScript, ScriptName
StopScript, ScriptName
-Stats
SetStat, NewValue
ModStat, Mod
Resurrect Brings Actor back to life
-Weather
ChangeWeather, RegionID, TypeEnum
ModRegion, RegionID, clear_var, cloudy_var, foggy_var, overcast_var, rain_var, thunder_var, ash_var, blight_var
-Console (in game only commands)
CenterOnCell (coc), CellID Places the PC in the named cell.
CenterOnExterior (coe), X, Y Places the PC in the exterior cell grid.
FillJournal add all entries to journal, takes a long time
FillMap___ ___ show all the towns on the full map
FixMe Jump 128 units away from where I am now.
GetFactionReaction factionID factionID_______ The faction ids are not optional, works in Console window only
Help Shows shorthand for most commands
Show
ShowVars (sv)
StopCellTest (sct)
TestCells (tc)
TestInteriorCells (tic)
TestModels ( t3d)
ToggleAI (ta)
ToggleBorders_(tb)
ToggleCombatStats (tcs)
ToggleCollision_(tcl)
ToggleCollisionBoxes_(tcb)
ToggleCollisionGrid (tcg)
ToggleDebugText (tdt)
ToggleDialogueStats (tds)
ToggleFogOfWar (tfow)
ToggleFullHelp (tfh) show you ownership and script
name
ToggleGodMode (tgm)
ToggleGrid (tg)
ToggleKillStats (tks)
ToggleLoadFade
ToggleMagicStats (tms)
ToggleMenus (tm)
ToggleScripts
ToggleStats (tst)
ToggleSky_(ts)
ToggleTextureString (tts)
ToggleWorld (tw)
ToggleWireframe_(twf)
TPG Toggle path grid display
SG Show selected actor's group members
ST Show selected actor's target group members.
ShowScenegraph (ssg)
Enough? There are alot more, if I left anything with 'get' in it ignore it because that is a scripting only command and anything which says 'returns' in its description is the same.
Fade on 2/5/2004 at 10:13
Thanks! That's what I was looking for.
Pisces on 2/5/2004 at 10:25
hmm...tab didn't work.