Welcome to the Builder Academy

Question trigger question "something"

More
22 Oct 2016 15:42 - 24 Oct 2016 05:39 #6208 by JTP
Im trying to make a trigger for mob

It ends with:
else
%send% %actor% study what?
end


But if my testchar types the wrong message, it says:

Study whatsomething


What did i miss, why does it say something instead of the questionmark ?
Last edit: 24 Oct 2016 05:39 by JTP.

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

More
22 Oct 2016 23:42 #6209 by thomas
Replied by thomas on topic Mob trigger question
It seems strange with the question mark turning into "something". This is only supposed to happen to ` :
github.com/tbamud/tbamud/blob/master/src/dg_comm.c#L105
Code:
case '`': if (!otokens[i]) strcat(sb,"something"); else strcat(sb,OBJS(((obj_data *) otokens[i]), ch)); break;
Is that file the same as in stock tba?


You can check the level of a player's skill by using %actor.skill("herbalism")% .

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

More
22 Oct 2016 23:52 #6210 by JTP
Replied by JTP on topic Mob trigger question
case '?':
if (!otokens)
strcat(sb,"something");
else
strcat(sb,OBJS(((obj_data *) otokens), ch));
break;



This one is mine, what else has changed ?

Or just change it to:
case '`':

Or something else also ?

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

More
23 Oct 2016 10:54 #6211 by thomas
Replied by thomas on topic Mob trigger question
The '?' case is mentioned twice in that file. You need to alter both.

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

Time to create page: 0.287 seconds