Difference between revisions of "Npc crptalk id V3"
From Unofficial QEdit Wiki Guide
Pheonixmog (Talk | contribs) (Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:red'>npc_crptalk_id_v3</span> ''Register1''</span> * ''Register1'' = Start of conti...") |
(→Syntax) |
||
Line 13: | Line 13: | ||
5th register = State (0 is alive, 1 is dead, 2 is Invisible Named Text Box) | 5th register = State (0 is alive, 1 is dead, 2 is Invisible Named Text Box) | ||
− | 6th register = NPC Template (0 - 63 in decimal, look in | + | 6th register = NPC Template (0 - 63 in decimal, look in https://www.youtube.com/watch?v=U5HGYTQ5SrM) |
7th register = Player slot. (0-3) | 7th register = Player slot. (0-3) | ||
− | |||
− | |||
==Use== | ==Use== |
Latest revision as of 20:28, 31 May 2025
Contents
Syntax
Syntax: npc_crptalk_id_v3 Register1
- Register1 = Start of continuous 7 Registers
1st register = Position X (decimal)
2nd register = Position Y (decimal)
3rd register = Position Z (decimal)
4th register = Rotation of NPC (decimal)
5th register = State (0 is alive, 1 is dead, 2 is Invisible Named Text Box)
6th register = NPC Template (0 - 63 in decimal, look in https://www.youtube.com/watch?v=U5HGYTQ5SrM)
7th register = Player slot. (0-3)
Use
Used to create an NPC occupying a character slot. Often not used for combat, and will have the appropriate colored text box for their slot.
WARNING: Creating an NPC in a character slot that is occupied by a player will overwrite their character status. It is highly recommended to put failsafes and checks to prevent overwriting a player's character.
Example
100: leti R1, 00000208 //Makes register 1 equal 520. (X position of where the npc will spawn.)
leti R2, 00000000 //Makes register 2 equal 520. (Y position of where the npc will spawn.).
leti R3, 00000022 //Makes register 3 equal 34. (Z position of where the npc will spawn.)
leti R4, 00000014 //Makes register 4 equal 20. (Rotation of spawned npc.)
leti R5, 00000000 //Makes register 5 equal 0. (Is npc dead flag set to 00000000 for alive, 00000001 for dead and lying on the ground.)
leti R6, 00000011 //Makes register 6 equal 17. (Preset npc number. Determines what the npc will have equipped, level, and type. 00000011 is MONTAGUE)
leti R7, 00000001 //Makes register 7 equal 1. (The slot id to give the npc.)
npc_crptalk_id_V3 R1 //Loads the npc with the leti arguments listed above.
npc_stop 00000001 //Used to prevent the npc from following you.
ret