Page 1 of 1

Assigning abilities [Archive] - ForumsHQ

Posted: Tue Oct 29, 2002 2:26 pm
by Rust In Peace
Does MajorMud support the ability to add to abilities instead of overwriting them?



ie. if XYZ(x) then XYZ(x+1) instead of the way MajorMud does it now, which is, if XYZ(x) then XYZ(y).

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Tue Oct 29, 2002 4:16 pm
by syntax53
Originally posted by Rust In Peace

Does MajorMud support the ability to add to abilities instead of overwriting them?



ie. if XYZ(x) then XYZ(x+1) instead of the way MajorMud does it now, which is, if XYZ(x) then XYZ(y).





not really sure what you're talking about ... elaborate.

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Tue Oct 29, 2002 4:27 pm
by Rust In Peace
Ok.. Say I have a quest that you can do multiple times. Say I assign it ability 999. So the first time you complete you get the flag 999(1). Second time you complete the quest, you get 999(2), and so on.



From what I understand, MajorMud checks for an existing ability and then gives a new one overwriting the old one.. ie testability 999(1) : giveability 999(2) or something along those lines. Does MajorMud support testability 999(1) : giveability 999(current+1).



Does that make more sense?

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Tue Oct 29, 2002 5:07 pm
by dxpac666
Dont have it check or test for the ability in the first place? Just guessing.

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Tue Oct 29, 2002 5:27 pm
by syntax53
i've never seen any kind of math being done within a textblock

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Tue Oct 29, 2002 6:34 pm
by Panterra X
no i dont think this will work.. if you want the abil to lets say

get better with each time the user does it you will have to

make new abils.. have it check for the first and if exists add the

next and so on... the only time a ability ever gets 'replaced' is

when the takeabil flag is used.

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Fri Nov 22, 2002 2:58 am
by Mortify
try using 'addability' instead of 'giveability'.



i.e.



addability 999 1



It should add the ability if you dont have it already, and give it a value of 1. If you do have it, it should increase the value for that ability by 1

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Fri Nov 22, 2002 11:23 am
by Raybdbomb
Mortify, i dunno who you are, but with a name like that you belong on morbidbbs telnet://morbid.kicks-ass.org

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Fri Nov 22, 2002 4:23 pm
by Mortify
Im considering it, but right now Im having a hard time being AK on my current chars.

Re: Assigning abilities [Archive] - ForumsHQ

Posted: Fri Nov 22, 2002 4:33 pm
by Speed
bah, who is ever at keys.