Author Topic:  Custom commands  (Read 461 times)

0 Members and 1 Guest are viewing this topic.

Hayden

  • Elite Member
  • *****
  • Posts: 523
  • Ban no one, Report everyone.
  • Awards 1 year on site+100 posts Donated a giveaway prize. (Must be a prize of cash value.) 2 years on site+300 posts
    • View Profile
    • Awards
  • Xbox: mister m0nk3y
  • Steam: Hayden
  • Other: 123456789
Custom commands
« on: April 08, 2017, 05:26:32 PM »
I first requested this when I requested the in game messages, but now that the in game console is going to be a thing, maybe we can do it that way.
SetEventScript [command] [Example] [script]


And when someone types -Example in the console then the script named script is ran
Craig doesn't know me.

Platinum Dryym

  • Supreme Member
  • *****
  • Posts: 4254
  • What's yours is mine. ~TM's Resident Master Thief~
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site+300 posts 3 years on site+600 posts Site art contributions/TPs in-game/Contest winners 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: dryym
Re: Custom commands
« Reply #1 on: April 09, 2017, 04:55:09 PM »
I would prefer this to be something similar to
SetEventScript [consolecommand] [script]

And within that script you could use an "IsConsoleInput" conditional to query various parameters and arguments.

It would also be necessary to allow the possibility to retrieve one or more variables from a custom command. I just don't know how that would be done.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

crazytater94

  • Supreme Member
  • *****
  • Posts: 2586
  • Mastering TM since 2011
  • Awards Awarded to exemplary forum members Members who have unlocked the robotic avatar 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
Re: Custom commands
« Reply #2 on: April 10, 2017, 01:27:56 PM »
For the console command, are you referring to a chat command, such as /SetSpawn?

Hayden

  • Elite Member
  • *****
  • Posts: 523
  • Ban no one, Report everyone.
  • Awards 1 year on site+100 posts Donated a giveaway prize. (Must be a prize of cash value.) 2 years on site+300 posts
    • View Profile
    • Awards
  • Xbox: mister m0nk3y
  • Steam: Hayden
  • Other: 123456789
Re: Custom commands
« Reply #3 on: April 10, 2017, 01:46:31 PM »
For the console command, are you referring to a chat command, such as /SetSpawn?
No, I am referring to the console http://totalminerforums.net/index.php?topic=18659.msg192127#msg192127
Craig doesn't know me.