Global Value (NPC) –can u help?

Sooden

LOMCN VIP
VIP
Jul 21, 2003
287
0
133
in the hole i'm digging
Is there any sort of global flag, unlike ‘SET [100] 1’ that relates to a player. As I was trying something with robots and wanted to set a global flag that effect all play. And if so, any help would be appreciated.

example


-----------
(robot)
#IF
checkmonmap Mapx 40
#ACT
Setglobalflag 1
------------------
(Standard npc)
#IF
Setglobalflag 1
#SAY
Oh heck!
-----------
Above is just an example so you know what I’m talking about
 

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,357
55
335
England
m8 i didnt get u fully, but i read it 3 times and i think i got a bit of an answer :P

do u mean.. can u put flags on people?....

if so. i think u can if you set a flag on an npc it sets it on a person i think :/
 
Upvote 0

Ceef

LOMCN Veteran
Veteran
Sep 1, 2003
352
22
95
i think there is this feature in the latest m2server.

Best bet is to ask BabyHack or milo. they seem to be the ones that know most about te features in the new m2's
 
Upvote 0

Solitude

LOMCN VIP
VIP
Apr 22, 2003
326
0
133
South Wales
You could use namelists to get the desired effects, with namelist you could apply something to all players minus those in the list. See the code below :

Code:
[@main]
#IF
checknamelist idiot.txt
#SAY
You are an idiot!
#ELSESAY
You are not an idiot

I know the code is simple but you get what I mean.

--Solitude--
 
Upvote 0

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
155
Darlington, UK
on DAO i created a feature that opens up every 2 hours. I used namelists of the robot and merged the console timer out of robotmanage to create a global flag if you wish. Its a pain in ass but i could not see any other way. Just try creating somenamelists for the robot like Solitude said sos if that didnt help i didnt know how to word it.
 
Upvote 0

Sooden

LOMCN VIP
VIP
Jul 21, 2003
287
0
133
in the hole i'm digging
BloodDemon said:
on DAO i created a feature that opens up every 2 hours. I used namelists of the robot and merged the console timer out of robotmanage to create a global flag if you wish. Its a pain in ass ......

That was confusing :P

I will try and explain my self better sometime, but for now I will give it a rest..

I don’t think a name list word work for me as the name would be the robot ‘Test” as that the name it Given in a ‘sendmsg’ when using the varible %s.

----------ADDED-----------------------

Can a Robot NPC be physical as well, E.g be an npc that you can click on?
 
Upvote 0

mazz

Dedicated Member
Dedicated Member
Aug 6, 2008
193
2
45
I have a need for a global varitable simply to decide which side of the map you would be moved to by clicking on the same npc this would start the game.
so is there a way to set a global flag so the npc counts the amount of people that clicked on it?

so the first person would be team 1 move to team 1 postion on the map
the second person would be moved to postion 2 if flag has in bin globaly set by the first person
 
Upvote 0