Thread: strings...
View Single Post
  #4  
Old 08-07-2001, 11:15 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
How is that cofusing. I will try to explain but Falcor did a good job.

Ok here is an example. Say you wanted a door to appear shut if a player enters and is not a certain class. And lets say the classes are god, robot, and plant man (whoever the idiot was who made these)And you only want the god to enter so. When the player chose to be a god you would have it do this:

if(playertouchsme){
set god;
}

then in the level with the door that only should open for gods put

if(playertouchsme){
if(god){
hidelocal;
else
show;
}
}

I think I messed up and it might be if(god=true) but i cant remember off the top of my head. If you use this it prolly wont work without changing a few things I messed up on but thats the basic Idea.

You set a string or flag (which makes it true) then you can use that to decide things in the game.

To set a server flag just put server.god I think. I never really use those so I dont know.

__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote