Author Topic: eventMoveLiving() help please  (Read 1897 times)

Offline capo

  • Friend
  • **
  • Posts: 70
    • View Profile
eventMoveLiving() help please
« on: October 19, 2006, 03:36:21 PM »
Im attempting to use eventMoveLiving() to move a character from one room to another but unfortunately I am unable to get the character to move.  



Below is part of the code that I cannot get to work.  I've tried a few different permutations of this_player()->EventMoveLiving... what do you guys suggest to get this to work?



Thanks!



code:


int pick(string str)
{

    if(!str || str == "")
        {
        write("You must select a race to proceede.");
        return 1;
        }

    if(str == "elf" || str == "Elf")
        {
        this_player()->EventMoveLiving("/domains/creation/room/race_elf.c");
        return 1;
        }
    if(str == "orc" || str == "Orc")
        {
        this_player()->EventMoveLiving("/domains/creation/room/race_orc.c");
        return 1;
        }
    if(str == "human" || str == "Human")
        {
        this_player()->EventMoveLiving("/domains/creation/room/race_human.c");
        return 1;
        }
}

void init(){
    ::init();
    add_action("list","list");
    add_action("info","info");
    add_action("pick","pick");
}

Offline capo

  • Friend
  • **
  • Posts: 70
    • View Profile
eventMoveLiving() help please
« Reply #1 on: October 19, 2006, 06:38:39 PM »
Any ideas?

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1020
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
eventMoveLiving() help please
« Reply #2 on: October 19, 2006, 06:46:33 PM »
eventMoveLiving()

Offline capo

  • Friend
  • **
  • Posts: 70
    • View Profile
eventMoveLiving() help please
« Reply #3 on: October 19, 2006, 07:14:02 PM »
Yeah, I ate paint chips as a child.. works great now.