ID:261255
 
I cant add a SSJ code the chars start out with it. i need help on adding a bit of code for the SSJ. i also need a piece of code that only allows you to go SSJ once. Clicking SSJ constantly multiplys power

mob/verb/SSJ()
usr.Plvl*=10
usr.HP*=10
icon='SSJ Goku.dmi'
mob/var/gone_once = 0 as num
mob/verb/MegaPower()
if(gone_once == 0)
src << "You have megapower! You can only get megapower once, though."
gone_once = 1
else
src << "You already have mega power. Like I told you, you can only do it once!"


Hope that helps you some!
In response to Lord of Water
thanks, I'll test it and get back to you.
In response to Super saiyan3
In response to Super saiyan3
Super saiyan3 wrote:
Oh yeah can you tell me how to add a different icon for each char? PLZ

http://www.deadron.com/Admin/BYOND_FAQ.html

Everything you need is right there
In response to Lord of Water
mob/var/gone_once = 0 as num
mob/verb/SSJ()
usr.Plvl*=10
usr.HP*=10
icon='SSJ Goku.dmi'
if(gone_once == 0)
src << "You Already are an SSJ! You can only Power up tp SSJ once."
gone_once = 0
else
src << "You Already are SSJ. Like I told you, you can only do it once!"

Lord of Water it still does not stop the stats from multiplying by 10 each time what should i add in?
In response to Super saiyan3
Here's the problem.

Look at your code like a computer would.

Take it a line at a time, from top to bottom, and do exactly what it says to do.

mob/var/gone_once = 0 as num
mob/verb/SSJ()

//Declare the verb "SSJ()"

usr.Plvl*=10

//Increase variable "Plvl" belonging to usr by * 10.

usr.HP*=10

//Increase variable "HP" belonging to usr by * 10.

icon='SSJ Goku.dmi'

//Set variable "icon" belonging to usr to 'SSJ Coku.dmi'

if(gone_once == 0)

//If variable "gone_once" belonging to usr = 0, continue.

src << "You Already are an SSJ! You can only Power up tp SSJ once."

//If continued, return text inside "'s to src.

gone_once = 0

//If continued, set variable "gone_once" belonging to usr to 0

else
src << "You Already are SSJ. Like I told you, you can only do it once!"

//If not continued, return text inside "'s.


So tell me, what do you think the problem is?
In response to Super saiyan3
Super saiyan3 wrote:
mob/var/gone_once = 0 as num
mob/verb/SSJ()
usr.Plvl*=10
usr.HP*=10
icon='SSJ Goku.dmi'
if(gone_once == 0)
src << "You Already are an SSJ! You can only Power up tp SSJ once."
gone_once = 0
else
src << "You Already are SSJ. Like I told you, you can only do it once!"

Lord of Water it still does not stop the stats from multiplying by 10 each time what should i add in?


Look at it..over and over...Lets see what it does

You use the verb
usr(in this case the mob using it) Plvl gets multiplied by 10, then the same done to hp. Their icon is then changed.

THEN it checks if their gone_once variable is 0 or 1.


Need I say more?

Alathon
In response to GateGuardian
i dont know how to fix prob! *_*

mob/var/gone_once = 0 as num
mob/verb/SSJ()
usr.Plvl*=10
usr.MAXHP*=10
icon='SSJ Goku.dmi'
underlays+='ssjaura.dmi'
if(gone_once == 0)
src << "You Already are an SSJ! You can only Power up to SSJ once."
gone_once = 0

else
src << "You Already are SSJ. Like I told you, you can only do it once!"


mob/verb/Revert()
usr.Plvl/=10
usr.MAXHP/=10
icon='Goku.dmi'
underlays-='ssjaura.dmi'
if(gone_once == 0)
src << "You Already are not SSJ! You can only Power off SSJ once."
gone_once = 0
else
src << "You Already non SSJ. Like I told you, you can only do it once!"


can some one help me PLZ
In response to Super saiyan3
You've had the answer made quite obvious in at least one if not more posts. If you'd try a little harder and spend more time trying than begging I'm sure you'd figure it out. As it is, I find it hard to see anyone who writes "Plz help!!!!" and uses shortcuts in their writing as someone who is going to put out a lot of effort, so I've decided to not help people who say "Plz" (as opposed to "Please").

Have a nice day.