How do I cast spells with a ' in the name?

trillo

Active Member
I can not seem to figure it out with my limited LS abilities.

For instance if I try to cast a spell named "Nature's Grace" I will get feedback that I do not know "Natures Grace".

Also, is there a way to switch forms/Stances/Etc?

Thanks in advance,

Trillo
 

Amadeus

The Maestro
Staff member
It's more helpful if you post what you're trying. Then, we can correct it.

People respond better to those that try first. If you don't know where to start, read the wiki and download scripts that are available already and see how they work.

There are ways to do everything that you asked about.
 

abbadon

Active Member
examples

Trillo,

If you download Krambot there are examples of all of those in the code. I am sure the same can be said for fbbot but I have not looked at that code to know for sure.
 

Kram337

Active Member
I recall running into issues with spell names that contain apostrophes as well. Probably because it's some sort of special character. We'd probably have equal issues with spell names that contained comma's.

Annyway. If memory serves correctly to get around the issue I had to encase the spell name in quotes. So instead of sending (Nature's Grace) through I would send ("Nature's Grace").

Hope that helps,
~Kram
 

Cr4zyb4rd

Active Member
The apostrophe, being itself a type of quote, usually requires a backslash escape. Of course quotes around a string never hurt.

Code:
Me.Ability["Nature\'s Grace"]:Use
or
Code:
variable string MySpell="Nature\'s Grace"
; Note the quotes are not part of the string, so they might still be needed elsewhere
Me.Ability["${Nature's Grace}"]:Use
 

Smyrk

Active Member
Cr4zyb4rd said:
Code:
variable string MySpell="Nature\'s Grace"
; Note the quotes are not part of the string, so they might still be needed elsewhere
Me.Ability["[COLOR="Red"]${Nature's Grace}[/COLOR]"]:Use
I think you mean:
Code:
variable string MySpell="Nature\'s Grace"
; Note the quotes are not part of the string, so they might still be needed elsewhere
Me.Ability["[COLOR="Blue"]${MySpell}[/COLOR]"]:Use
Right, Cr4zyb4rd?
 

Smyrk

Active Member
Heh I was just asking cause I thought its what he actually meant, and in case there was some strange and arcane method I might be missing...
 
Top Bottom