world<<"<font size=2><font color=#571B7e>[usr] has locked the [usr.GymType] gym."
Problem description:i want that to apper only on the Gymleaders chat not world
Code:
world<<"<font size=2><font color=#571B7e>[usr] has locked the [usr.GymType] gym." Problem description:i want that to apper only on the Gymleaders chat not world |
Apr 14 2012, 3:31 pm
|
|
How are you keeping track of gym leaders? Ideally you'd loop through players in the world, finding ones that are a gym leader, then output the message only to them.
|
In response to LordAndrew
|
|
the verb is for locking there house i want it to be seen by only them
|
This seems too simple of an answer to be what you're looking for, but perhaps you mean this?
usr<<"<font size=2><font color=#571B7e>[usr] has locked the [usr.GymType] gym." That would display it to the person who locked the house, but no one else. view()<<"<font size=2><font color=#571B7e>[usr] has locked the [usr.GymType] gym." That would display it to the person who locked the door, and anyone else they could see on their screen. |
In response to Toddab503
|
|
thank you im still a lil new to coding im a mapper so trying to be both is a lil hard
|
In response to Goddess of the Angels
|
|
You're welcome, and don't worry you will adjust to it. A lot of people tend to do a combination of programming, mapping, pixel art, and GFX. Sometimes even more than 2 out of the 4. It can be pretty exhausting, but it gets easier with time and experience.
|