room_get_id

returns the id of the room with the given name

if the room does not exists, returns -1

Arguments

  • name : string name of the room "room0"

Returns : room id

Source code

  1. //if you have more then room count change this value
  2. var i, room_count;
  3. room_count=100;
  4. for(i=0;i<room_count;i+=1){
  5.     if(room_get_name(i)==argument0) return i;
  6. }
  7. return -1;