09-22-2012, 06:34 PM
09-22-2012, 06:42 PM
Just do:
if(GetLocalVarInt("Variable") == 1)
{
SetMessage("Messages", "Variable_1", 0);
}
if(GetLocalVarInt("Variable") == 2)
{
SetMessage("Messages", "Variable_2", 0);
}
and so on...
if(GetLocalVarInt("Variable") == 1)
{
SetMessage("Messages", "Variable_1", 0);
}
if(GetLocalVarInt("Variable") == 2)
{
SetMessage("Messages", "Variable_2", 0);
}
and so on...
09-22-2012, 07:25 PM
Do you want to display the message to the player or to you, the developer? If player, beecake's code is one way of doing it. If to yourself, use AddDebugMessage.
09-22-2012, 07:35 PM
I want to make the player see it, but i think i will have to do it a way like beecake said. The only problem is that the variable will go on from like 1 to 100.
09-22-2012, 07:44 PM
And you want each number? What about doing it with percent? Like 10% and 20%
09-22-2012, 07:50 PM
That's a good idea, but I can't use it, because I'm going to make shops with thalers...
09-22-2012, 08:09 PM
Then it gets pretty complex... But yes then i guess you would have to make 100 messages...
09-22-2012, 08:23 PM
or more... i guess i will do that then xD
09-22-2012, 08:43 PM
As long as that may take, it will be worth it.
07-29-2013, 05:21 PM
(09-22-2012, 06:42 PM)BeeKayK Wrote: [ -> ]Just do:
if(GetLocalVarInt("Variable") == 1)
{
SetMessage("Messages", "Variable_1", 0);
}
if(GetLocalVarInt("Variable") == 2)
{
SetMessage("Messages", "Variable_2", 0);
}
and so on...
hm, okej - and how do it, that i can connect variables with any string ?
I did
Code:
SetMessage("Skrytki","Odkryto"+GetGlobalVarInt("OdkryteSkrytki")+GetGlobalVarString("Separator")+GetGlobalVarInt("MaxSkrytek"), 3);
but this doesnt work :/
Please help me, and sorry for my english
btw. i want display this connect strings by collided in area script.