ID:146532
 
Code:
mob
verb
Henge_No_Jutsu(mob/M in view(usr))
set category = "Genjutsu"
if(src.resting == 1)
src << "You are resting"
return
if(src.Chakra <= 9)
src << "You are out of chakra"
if(src.CControl == 101)
var/CCusage = rand(9,11)
if(CCusage <=9)
view(usr) << "[usr] says, Henge No Jutsu"
src << "[CCusage]/10 Chakra Converted"
src.Chakra -= CCusage
return
if(CCusage >=10)
view(usr) << "[usr] says, Henge No Jutsu"
src << "[CCusage]/10 Chakra Converted"
src.Chakra -= CCusage
src.icon = M.icon
src.exp += rand(100,500)
if(src.exp >= src.maxexp)
Levelup()
return
if(src.CControl >= 130)
var/CCusage = rand(7,11)
if(CCusage <=9)
view(usr) << "[usr] says, Henge No Jutsu"
src << "[CCusage]/10 Chakra Converted"
src.Chakra -= CCusage
return
if(CCusage >= 10)
view(usr) << "[usr] says, Henge No Jutsu"
src << "[CCusage]/10 Chakra Converted"
src.Chakra -= CCusage
src.icon = M.icon
src.exp += rand(100,500)
if(src.exp >= src.maxexp)
src.Levelup()
if(src.CControl <=100)
view(usr) << "[usr] says, Henge No Jutsu"
src << "10/10 Chakra Converted"
src.Chakra -= 10


Okay when I do Henge No jutsu my usrs icon disapears when I want it to look like M icon and I want usr to look like M for 1 minute.

mob/var/tmp
savedicon

mob
verb
Henge_No_Jutsu(var/mob/M in oview)
set category = "Genjutsu"
if(usr.resting == 1)
usr << "You are resting"
return
if(usr.Chakra <= 9)
usr << "You are out of chakra"
return
if(usr.CControl == 101)
var/CCusage = rand(9,11)
if(CCusage <=9)
oview << "[usr] says, Henge No Jutsu"
usr << "[CCusage]/10 Chakra Converted"
usr.Chakra -= CCusage
return
if(CCusage >=10)
oview << "[usr] says, Henge No Jutsu"
usr << "[CCusage]/10 Chakra Converted"
usr.Chakra -= CCusage
usr.icon = usr.savedicon
usr.icon = M.icon
spawn(600)
usr.icon = usr.savedicon
usr.exp += rand(100,500)
if(usr.exp >= usr.maxexp)
usr.Levelup()
return
if(usr.CControl >= 130)
var/CCusage = rand(7,11)
if(CCusage <=9)
view << "[usr] says, Henge No Jutsu"
usr << "[CCusage]/10 Chakra Converted"
usr.Chakra -= CCusage
return
if(CCusage >= 10)
view << "[usr] says, Henge No Jutsu"
usr << "[CCusage]/10 Chakra Converted"
usr.Chakra -= CCusage
usr.icon = usr.savedicon
usr.icon = M.icon
spawn(600)
usr.icon = usr.savedicon
usr.exp += rand(100,500)
if(usr.exp >= usr.maxexp)
usr.Levelup()
if(usr.CControl <=100)
view << "[usr] says, Henge No Jutsu"
usr << "10/10 Chakra Converted"
usr.Chakra -= 10


Ok, I rewrote it a bit... The main things I changed were changing src to usr, since it helps relieve the code if you use usr to define the person using the verb. Also I added a tmp var to save people icons and then change it back.

-PowerMagic4

P.S. if you need to contact me about anything else, just msg me on msn, [email protected]
Try changing the icon_state too.
In response to PowerMagic4
If you could, to make it easier for others to read, place your code like
 Code Here...
so that it appears like it came from DM. It's not very important, but it makes things easier to read.

[EDIT] I forgot that including the tags would actually put it in DM format when I typed it. I meant "place your code like <*dm> Code Here... <*/dm>" ---Take the *s out

RD
(Editorial comment goes here since there is no forum for them!)
I suggest a forum filter option so that I never have to see a topic containing "no jutsu" or "dbz" ever again. Is this within the realm of forum modification?
In response to PirateHead
PirateHead wrote:
(Editorial comment goes here since there is no forum for them!)
I suggest a forum filter option so that I never have to see a topic containing "no jutsu" or "dbz" ever again. Is this within the realm of forum modification?

oh,next time Ill just put (insert name) with nothing like No jutsu.

EDIT:The rest works execpt, I can't make my icon back to regular it will just disappear.
In response to PirateHead
PirateHead wrote:
(Editorial comment goes here since there is no forum for them!)
I suggest a forum filter option so that I never have to see a topic containing "no jutsu" or "dbz" ever again. Is this within the realm of forum modification?

Heh, you cant just block out a fan game question. Because you dont like "dbz or naruto" Doesnt mean it'll disapear. I'd suggest you would'nt pay attention to these posts.
In response to Broly103
The rest works execpt, I can't make my icon back go back to its regular state, it will just disappear.
In response to Rurouni Dragon
Rurouni Dragon wrote:
[EDIT] I forgot that including the tags would actually put it in DM format when I typed it. I meant "place your code like <*dm> Code Here... <*/dm>" ---Take the *s out

RD

If you want to display greater than or less than signs, then use HTML entities:

One the forum, you can use "&lt;" to display a < sign, and you can use "&gt;" to display a > sign (The "lt" stands for "less than", while the "gt" stands for "greater than").

So, to display dm tags: &lt;dm&gt;code&lt;dm&gt; (Comes out as "<dm>code<dm>).
In response to Wizkidd0123
Wizkidd0123 wrote:
So, to display dm tags: &lt;dm&gt;code&lt;dm&gt; (Comes out as "<dm>code<dm>).

Wizzy, you messed up your HTML =P.
In response to N1ghtW1ng
Problem after the usr looks like M once a minute passes my usr icon should look the same before the verb, but instead my icon disappears.Plus what happens if my usr has clothes on I would I make it revert back with clothes on instead of just the regular icon.
In response to Broly103
Broly, I'm sorry to say this but, this is simple. Maybe you're trying too hard for a beginner, but we're doing all the work for you. Try something easier.
In response to Hell Ramen
Hell Ramen wrote:
Broly, I'm sorry to say this but, this is simple. Maybe you're trying too hard for a beginner, but we're doing all the work for you. Try something easier.

I have a lot of studying to do over the summer then.
In response to Broly103
Yer, good luck on that. Creating a Naruto game takes alot of time, you cant just get help through all of it and why make somthing like newbreedofnerd's game? Why dont you try your own ideas. Might be easier might be harder, depends on how you program it and how you want it.