Page 1 of 1
Disable trigger for...
Posted: Tue Feb 07, 2006 2:53 pm
by Barttje
Hi all
How can I remove a trigger for only one player
so the rest can use the triger (once)
tnx
Posted: Tue Feb 07, 2006 11:47 pm
by LeBabouin
Which player? anyone? You? What distinguishes that player from the others? And what game for?
Posted: Wed Feb 08, 2006 1:44 pm
by Barttje
anyone can use it once, is it possible?
(oh BTW, i'm scripting in notepad so not in mohradaint or whaterver)
Posted: Thu Feb 09, 2006 10:01 am
by bdbodger
The usually way of doing it is to give a player a value after they have triggered the trigger once then in the thread for the trigger you check if that player has had the value set
mythread:
while(1)
{
$mytrigger waittill trigger
local.player = parm.other
if(local.player.somevalue == 1) // check if value is set yet
end // if value is set thread will end
local.player.somevalue = 1 // if thread didn't end set the vaue for next time
.....
.....
}
end
Posted: Thu Feb 09, 2006 12:05 pm
by Barttje
(The 2 post up here are wrong posted,,, srry

) - Fixed bdbodger
Tnx bdbodger it works

but if i walk again in to the trigger he is saying the trigger message:
Code: Select all
local.trigger message ".... Blabla ...."
can i disable it to?
Posted: Fri Feb 10, 2006 3:57 am
by bdbodger
No don't think you can but you and add a iprintln statement to your thread instead of the message key on the trigger or local.player println I think will print a line only to that one player .
message
Posted: Fri Feb 10, 2006 6:01 am
by tltrude
Doesn't "println" only print to the console and not the screen?
Posted: Fri Feb 10, 2006 9:19 am
by bdbodger
According to a couple of our fine members here at .map it is actually iprint
/forum/viewtopic.php?t=9450&highlight=local+player+print
I knew it was one of the print statements . Backed up by the SDK Docs
iprint( String string, [ Integer bold ] )
prints a string to the player, optionally in bold
Posted: Fri Feb 10, 2006 2:10 pm
by Barttje
okeey ill do that, Tnx all
