Go floor

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: go_floor register 1, register 2

  • register 1 = Reserved register 250 for the players slot number.
  • register 2 = Register containing the value of the floor to go to.

Use

Used to send players to different floors through scripting.

Example


100:     get_slotnumber R250 //Stores the players slot number in register 250.
         leti R1, 00000000 //Makes register 1 equal 00000000. (For floor 0).
         go_floor R250, R1 //Sends the player in slot stored in register 250 to the floor stored in register 1.
         ret 

Also see

get_slotnumber, leti, ret, reservedregisters