Page 1 of 1
Substitution Strings
Posted: Tue Dec 30, 2008 2:58 pm
by Lord_BoNes
I'd like to request, from those people that know them, a list of possible "substitution strings"... EG: %MEMBER_LEADER%
I've been trying to do some things with WALLITEM_SPEECH and the "substitution strings" seem to be, by far, the best answer.
Thanx.

Posted: Tue Dec 30, 2008 3:21 pm
by Gambit37
Posted: Tue Dec 30, 2008 3:34 pm
by Lord_BoNes
The main one I was wanting was something like %MEMBER_NAME%...
EG: Member attempts spell cast, passes the usual spell casting checks, spell cast goes through triggers, triggers make it fail: "Gothmog's spell fizzles".
It needs to be a per character variable.
Posted: Tue Dec 30, 2008 3:36 pm
by Gambit37
That's the full list...
Posted: Tue Dec 30, 2008 3:43 pm
by Lord_BoNes
Bugger.
I hope that George sees this when he comes back. It's rather limiting to not be able to do it.
Thanx anyways Gambit.
Posted: Tue Dec 30, 2008 4:09 pm
by Gambit37
You can use a trigger with the Opby set to EACH_PARTY_MEMBER. Then filter that through a relay with the condition set as:
Parameter 1: Triggering [CHARACTER]
Operation: EQUAL_TO
Parameter 2: Character [CHARACTER_XXX]
Long-winded but works perfectly.
Posted: Wed Dec 31, 2008 6:28 pm
by Lord_BoNes
I did know that approach, but that fails to work with reincarnated characters. It's a pain in the a** trying to get it to work the way I want it to.
Thanx anyways.
Posted: Tue Jan 06, 2009 1:04 pm
by Gambit37
Yeah, it does seem an oversight not to have %MEMBER_X% and %MEMBER_NAME%
Posted: Tue Jan 06, 2009 1:12 pm
by Lord_BoNes
Here I was think that you'd found something...

Damn, I can't help but feel slightly disappointed.
Anyways, hopefully George reads this and adds it...
BoNes prays for George to someday read this...
Posted: Tue Jan 06, 2009 2:02 pm
by Gambit37
Ooooh, you're in luck!
I just dumped the RTC.EXE into a hex editor and found a few extra strings that you can use:
%ITEM_CHARGE_AS_RUNE%
%ITEM_CHARGE_AS_NUMBER%
%MEMBER_1%
%MEMBER_2%
%MEMBER_3%
%MEMBER_4%
There is also %ITEM_LIFETIME% though I think this is connected to the %VALUE% special, due to the way it's shown in the ASCII string. Not sure.
Does this help you do want you want?
Posted: Fri Jan 09, 2009 12:00 pm
by Lord_BoNes
EXACTLY!
Thanx very much, Gambit. I hadn't seen this post, and just discovered the way myself. I actually came back here to post it, and saw this...
But, you did beat me to it, so thank you very much for your assistance.
If you haven't seen it, there is a topic in the "RTC Editing" forum, on poison projectiles, that you may be able to help with...
Thanx again.
BTW: The %MEMBER_1%, %MEMBER_2%, etc. defaults to "THERON". Try it out on a wall text.
Posted: Sat Jan 10, 2009 8:40 am
by Gambit37
Cool, glad you got it to work.
By the way, I think you missed a private message from me a few days ago? Check your PMs. Cheers.