ID:170880
Dec 3 2004, 7:33 pm
|
|
When a player logs in, if Warrior == 1, what is the code for giving them certain warrior verbs? Like, verbs that other classes cannot see, only ones with Warrior == 1.
|
Dec 3 2004, 7:43 pm
|
|
I actually, helped Lorddonk with the same thing.
|
In response to N1ghtW1ng
|
|
Well, It would seem as though that would work, but it doesnt :/ Im sure its something im doing wrong, btw I did edit it a little to suit my needs , I have character handling in my game that gives you the plus 1 on whatever class you choose so the warrior == 1 is actually true because my character is a Warrior, but, the verb does not show up when I log in :/ help meh.
mob |
In response to Loch
|
|
it would take up more space, but since i'm a newb, that's what i do :P but this is how i usually do it:
mob in other words, jsut define each verb directly, BUT, that's how i'd do it.. but i'm anewb... sooo my suggestions arn't as important :P |
In response to Loch
|
|
Give the players a variable when they Create the character, we'll name it class.
mob Now, to set that class.
class = "Warrior"
now, to check to see if the user's var is "Warrior" if(src.class == "Warrior") It's not the best looking code, but oh well, that's the easiest way to explain it without typing up all of it in DreamMaker and checking it. (N1ghtW1ng always beats me to posting when I do that, so you can just try to implement this into your game) |