ID:169069
 
How do i go about Making Weighted Clothing? Does Weighted Clothing and When u take it off your powerlevel increases abit?

How do i go about this?
Well for a basic set you'd want to do this:

Step One:
-In your equip proc/verbs make it so that if you're putting on these clothes your power level drops.

Step Two:
-In your unequip proc/verbs reverse that operation if you're unequipping these clothes.


Now in a more advanced model you'd want to make it so that when you get EXP (or gain PL, or whatever) your clothes effect how much you gain.

So what you'd want to do is go to any place where you add EXP and make it check to see if you're wearing these clothes, and if so increase your EXP by a little more.
In response to DarkView
So if this is the coding for the wearing and unwearing code here it is

        verb
Wear()
set category = "Utilities"
if(src.worn == 1)
src.worn = 0
usr.overlays -= 'boxing.dmi'
usr << "You remove the [src.name]."
else
src.worn = 1
usr.overlays += 'boxing.dmi'
usr << "You wear the [src.name]."


How can include this into my wearing code?
In response to Govegtos
Incidentally, you can leave out all those 'src.'s. If no source for a variable is specified, Dream Maker assumes src.
In response to Jp
Heh, Jp, you havnt looked at a zeta source lately have you? Everything that could be left as is has a src. in front of it. Now all the newb coders who learn from zeta think they need to do that. :P
In response to AJX
AJX wrote:
Heh, Jp, you havnt looked at a zeta source lately have you? Everything that could be left as is has a src. in front of it. Now all the newb coders who learn from zeta think they need to do that. :P

So? I specifically like to know which variable belongs to what. That, and I know specifically that the variable I'm setting isn't a temporary one.
In response to Teh Governator
Couldnt you just do a regular wear/remove code, and then, on the remove code do something like:

usr.pl += 1000

Or whatever to make it up your PL?