Spells

Spells

5.2k Downloads

Spell info command

Shanghai- opened this issue ยท 10 comments

commented

We don't have a command to get spell info yet, we should work out that system.

commented

good idea. Any idea of how a player should get the info? a typed command?

commented

I think that a typed command like /s info would work. It would give info on the selected spell.

commented

how about /spellinfo (less likely to have conflicts) with an optional argument for spell name (if you want a different spell)?

commented

That'll work.

commented

I've been thinking that it might be a good idea to abstract any action you can take in spells (from the user's point of view) and allow it to be accessed via commands as well. This would make it easier for people to setup hotkeys, or just do some things (like scrolling backwards) that we can't accommodate all the controls for right now.

Thoughts?

commented

that's an excellent idea. I'll implement it immediately. I finished the spellinfo command btw.

commented

I'm going to make spell names non case sensitive, to make it easier for people to use commands.

commented

Feel free to suggest different names for the commands. Some aren't the best...

commented

The commands are working well and are almost done. Currently I have the following commands:

  • /spellinfo - displays the current spell's description or an arbitrary spell, if an argument is provided.
  • /next - makes the player select the next spell/group and display its name
  • /goin - makes the player go into the currently selected group.
  • /goout - makes the player go out of the current spell group.
  • /cast - makes the player cast the currently selected spell.
  • /currentlyselected - tells the player the name of the currently selected spell/group.
  • /select - selects the spell provided as the first argument.

All of these commands have the appropriate error messages, such as the console trying to use them. Again, many of the names are awful and Josh suggested making every command start with /spells, which I think sounds like a good idea. What would be better names? Any other thoughts?

commented

Right, in order:

  • /spells info
  • /spells next
  • /spells prev[ious]
  • /spells down
  • /spells up
  • /spells cast
  • /spells current (Maybe this should just be a part of info?)
  • /spells select