Get chara class

From Unofficial QEdit Wiki Guide
Revision as of 23:37, 27 April 2013 by Japanaman2 (Talk | contribs)

Jump to: navigation, search

Syntax

Syntax: get_chara_class register 1, register 2

  • register 1 = Reserved register 250 to get the players slot number.
  • register 2 = Register to store characters class in.

Class values

Humar 00000000

Huney 00000001

Hucast 00000002

Hucassy 00000002

Ramar 00000000

Ramarl 00000000

Racast 00000002

Racassy 00000002

Fomar 00000000

Fomarl 00000000

Fonewman 00000001

Foney 00000001

mar/marl = 00000000

newman/neweral = 00000001

cast/castel = 00000002

Use

Used to store the characters class of the players in a register. For example you could make an npc say different things depending on what class the character is playing as with the appropriate jumps.

Example


100:     get_slotnumber R250 //Stores the value of the slot the player is in in register 250.
         get_chara_class R250, R1 //Stores the characters class of the players in register 1.
         ret 

Also see

get_slotnumber, ret, reservedregisters