![](templates/Classic/images/spacer.gif) |
Iceclaw Apprentice
Joined: 11 Sep 2005 Posts: 124
|
Posted: Fri Dec 30, 2005 9:19 pm
Rename (Or in other words, cast doesnt take the full target) |
Some spells do take the whole mob's name when casting at them, but not this one i'm working with.
I want it to return the second 'word' in a multiple word string
Given a string "oldstyle ares", return the string "ares"
Given "oldstyle ali baba thief" return "ali"
Given "troll" return "troll"
basically looking to remove oldstyle when returning strings, and use more specific nouns in the case of other 2 word mobs (troll slave=slave) etc.
Thanks. |
|
|
![](templates/Classic/images/spacer.gif) |
nexela Wizard
![](images/avatars/3549517644153b10a6a2fb.jpg)
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Fri Dec 30, 2005 9:33 pm |
#HELP
#HELP %word
#HELP %if
#HELP %numwords
#FUNC 2ndword %if(%numwords("%1")>1,%word("%1",2),"%1")
#SAY @2ndword("Multi word string")
word
#SAY @2ndword("Multi")
multi |
|
|
![](templates/Classic/images/spacer.gif) |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|