Welcome to the Builder Academy

Question parsing color in dg scrips

More
29 Apr 2016 23:10 - 30 Apr 2016 00:00 #5806 by rudeboyrave
we have kept a lot of features of the old colorcodes but in our dg scripts, we are getting raw colorcodes showing up in our %send% messages. anyone know where i could put a parse_at to stop this from happening?



YYou receive some bonus experience points!
YYou receive some bonus resource units!

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.
Last edit: 30 Apr 2016 00:00 by rudeboyrave.

Please Log in or Create an account to join the conversation.

More
30 Apr 2016 20:43 #5810 by thomas

Please Log in or Create an account to join the conversation.

More
30 Apr 2016 22:40 - 30 Apr 2016 22:46 #5811 by rudeboyrave
ive tried in sub write and sub write to char but i must not be putting it in the right spot or something. i feel like ive tried everywhere. perhaps its an issue with the color before the "you" "your" "it" in dg_objcmd.c ?

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.
Last edit: 30 Apr 2016 22:46 by rudeboyrave.

Please Log in or Create an account to join the conversation.

More
01 May 2016 11:40 #5812 by thomas
Replied by thomas on topic parsing color in dg scrips
I think we need to see the script (preferrably the version saved to disk) to get further on helping you.

Please Log in or Create an account to join the conversation.

More
01 May 2016 12:54 #5813 by rudeboyrave
set target %self.vnum%
if !%actor.varexists(fame%target%)% && %actor.vnum% == -1
set fame%target% yes
remote fame%target% %actor.id%
%send% %actor% @YYou become a little more famous after defeating %self.name% @Rin combat!@n
nop %actor.fame(1)%
%send% %actor% @YYou receive some bonus experience points!@n
nop %actor.exp(400000)%
%send% %actor% @YYou receive some bonus resource units!@n
nop %actor.gold(100000)%
else
end


the output

General Patton is dead! R.I.P.
YYou become a little more famous after defeating General Patton in combat! (COLOR WORKS IN THE LAST 2 WORDS?)
YYou receive some bonus experience points!
YYou receive some bonus resource units!
Your blood freezes as you hear General Patton's death cry.
You get a tiny pile of resource units from the corpse of General Patton.
There were 100 resource units.
You get General George S. Patton's Combat Helmet from the corpse of General Patton.
You get a newbie guide from the corpse of General Patton.
You scavenge what you can from the corpse of General Patton before ruthlessly destroying it.
You find one measly resource unit.

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

More
01 May 2016 20:29 #5814 by Parnassus
Just for fun, I'd try changing the yellow colourcode for red, just as a test.

%send% %actor% @RYou receive some bonus experience points!@n

Please Log in or Create an account to join the conversation.

Time to create page: 0.251 seconds