Is there a way to get the names of the cursors?

Started by mkennedy, Thu 05/10/2006 22:09:20

Previous topic - Next topic

mkennedy

Is there a way to get the names of the cursors and feed them into an array of strings? For example curs[1] would contain the name of cursor 1 and so on.

SSH

12

Sadistyk

Well, I don't know if this is what you want, but you can do this:
declare a String in the header:
String name;

Then, in the repeadtely execute part you put something like this:
function repeatedly_execute() {
  // put anything you want to happen every game cycle here
  if (mouse.Mode = eModeInteract) {
    name = "Interact";
  }
  if (mouse.Mode == eModeLookat) {
    name = "Look at";
  }
  if (mouse.Mode == eModePickup) {
    name = "Pick up";
  }
  if (mouse.Mode == eModeTalkto) {
    name = "Talk to";
  }
  if (mouse.Mode == eModeWalkto) {
    name = "Walkt to";
  }
}

If you want to use the names in a GUI, something like a label you just do:
label.Text = name;

Pumaman

It's reasonable suggestion though, would anyone else find it useful?

monkey0506

YES!!! Also a way to check how many there are. Thanks! :=


SMF spam blocked by CleanTalk