Substitution Strings

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Substitution Strings

Post 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. :)
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

It's about the only thing currently in the RTC Wiki :-)

http://dmwiki.atomas.com/wiki/RTC/Substitution_Strings
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

That's the full list...
Last edited by Gambit37 on Tue Dec 30, 2008 3:43 pm, edited 1 time in total.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post 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.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Yeah, it does seem an oversight not to have %MEMBER_X% and %MEMBER_NAME%
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Post 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...
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post 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?
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post 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.
Post Reply