TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#sub and #act problem

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
ppat



Joined: 24 Sep 2006
Posts: 5

PostPosted: Sun Sep 24, 2006 8:40 pm    Post subject: #sub and #act problem Reply with quote

I've searched all but i still can't find my answer. Ok let see

I want to create script that I just walk and it'll trigger #action to kill mobs so I

Code:
#SUBSTITUTE {~^\e[0m\e[37m\e[37m\e[1m\e[36m%1}={\e[0m\e[37m\e[37m\e[1m\e[36m[MOB] %1}
#SUBSTITUTE {~^\e[1m\e[36m%1}={\e[1m\e[36m[MOB] %1}
#SUBSTITUTE {~^\e[34m\e[1m\e[1m\e[36m%1}={\e[34m\e[1m\e[1m\e[36m[MOB] %1}


The mud I played have mob's name in same color but i found that there 3 color code(but it's light cyan) so i have 3 SUB , Now it'll look like this when i walk around.

Code:
Room name
[MOB] A beetle wanders by looking for something.
[MOB] A blue iguana with yellow spots is on the cavern floor.
[MOB] A female beetle walks about slowly.
[MOB] A rare white bat flies lazily around the cavern.
Exits: n w s e


So I set trigger to kill them with

Code:
#act {[MOB] A beetle wanders by looking for something.} {k beetle}
#act {[MOB] A blue iguana with yellow spots is on the cavern floor.} {k iguana}
#act {[MOB] A female beetle walks about slowly.} {k beetle}
#act {[MOB] A rare white bat flies lazily around the cavern.} {k bat}
#act {[MOB] A scrawny goblin walks unevenly about the cavern with his back hunched.} {k goblin}
#act {[MOB] A wretched looking centipede is crawling on the cavern floor.} {k centipede}
#act {[MOB] An ugly looking rat runs around trying to avoid getting stepped on.} {k rat}


but it don't work. I know that I can add color code in #act but it's hard to #unact all of the trigger. Any suggestion?
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Mon Sep 25, 2006 5:28 am    Post subject: Reply with quote

No need to #sub the colors, tintin does that automatically for normal actions.

What may be happening is that you already have an other action that triggers first.

Try: #debug action on, and see what happens when walking into a room.
Back to top
View user's profile Send private message Send e-mail
ppat



Joined: 24 Sep 2006
Posts: 5

PostPosted: Mon Sep 25, 2006 9:17 am    Post subject: Reply with quote

Nothing appear on #debug action on. It's happen like I walk around the room. And all in my #act is
Code:
#ACTION {[MOB] A beetle wanders by looking for something.}={k beetle} @ {5}
#ACTION {[MOB] A blue iguana with yellow spots is on the cavern floor.}={k iguana} @ {5}
#ACTION {[MOB] A female beetle walks about slowly.}={k beetle} @ {5}
#ACTION {[MOB] A rare white bat flies lazily around the cavern.}={k bat} @ {5}
#ACTION {[MOB] A scrawny goblin walks unevenly about the cavern with his back hunched.}={k goblin} @ {5}
#ACTION {[MOB] A wretched looking centipede is crawling on the cavern floor.}={k centipede} @ {5}
#ACTION {[MOB] An ugly looking rat runs around trying to avoid getting stepped on.}={k rat} @ {5}
#ACTION {^You receive %0 exps of %1 total.}={gac;fc} @ {5}


I sub like this because if I sub one bye one monster so in my #sub will have many line.

P.S. I saw you answer all the question ASAP. Thank you!!!

Aditional :
I try to sub some room name to test #act

Code:
#sub {Room name} {TESTEST Room name}
#act {TESTEST Room name} {#showme hit hit hit hit hit}


Nothing happen too. I don't know if it's bug or it's your attention to scan string from mud only. Thank you again
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Tue Sep 26, 2006 5:36 am    Post subject: Reply with quote

Doh, my mistake.

Substitutions trigger after actions. So you'll have to make actions for the original message.

So:

#act {^A beetle wanders by looking for something.} {k beetle}

should work while still having the [MOB] tag from the substitution.
Back to top
View user's profile Send private message Send e-mail
ppat



Joined: 24 Sep 2006
Posts: 5

PostPosted: Thu Sep 28, 2006 3:16 am    Post subject: Reply with quote

Thank you for your help Smile
I'm addict to TT++ Coffee
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Sep 28, 2006 2:12 pm    Post subject: Reply with quote

*cheers* Big Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group