ID:155321
 
Okay this is my code for my Skillcard for this technique


    Skillcards
Ninjutsu
icon = 'Hotkeys.dmi'
JutsuType = "Ninjutsu"

Chidori
icon_state = "Chidori"
name = "Chidori"
Click()

And here's the code for it the Chidori

<dm>mob
Attacks
verb
Chidori()
set name = "Chidori"
if(usr.chakra >= 150)
src << "You do not have enough Chakra, please rest"
return
if(usr.Sleep==1)
src << "You cannot disturb the gathering prcoess"
return
if(usr.Stuck==1)
src <<"You're frozen. You cannot use Chidori at this time!"
return
if(usr.ChidoriActivated==1)
return
if(!usr.Activate)
src.chakra -= 150
src.Activate = 1
flick('BaseW.dmi', src)
flick("Chidori",src)
src.Stuck = 1
sleep(7)
src.Stuck = 0
view() <<"<font size=1><font face=verdana><b><font color=White><font size = 1>[usr]<font color= white> says: Chidori!"
src.overlays += 'Chidori.dmi'
src.ChidoriActivated = 1
sleep(50)
if(usr.ChidoriActivated==1)
src<< "Your Chidori has run out of energy."
src.overlays -= 'Chidori.dmi'
src.Activate = 0
src.ChidoriActivated = 0



Now everytime I put under click Chidori() or mob/verb/Chidori()


I get undefined proc for the first one and undefined var for the second. I need to know how I can make this work.
What is after the Click()

The second one has a variable being used that you never defined.

Also I should note that the path for Chidori is /mob/NinJutsu/Chidori not /mob/SkillCards/NinJutsu/Chidori.
In response to Lugia319
Lugia319 wrote:
What is after the Click()

The second one has a variable being used that you never defined.

Also I should note that the path for Chidori is /mob/NinJutsu/Chidori not /mob/SkillCards/NinJutsu/Chidori.

Sorry I'm confused >_< So under click I should put /mob/NinJutsu/Chidori?

And which variable isn't defined?
In response to Chaorace
No, I assumed that it was mob, but I guess it's an object or something. Still, the point was Chidori is NOT under Skillcard.

And I don't know what variable isn't defined because I don't have the code, you do.
In response to Lugia319
Lugia319 wrote:
No, I assumed that it was mob, but I guess it's an object or something. Still, the point was Chidori is NOT under Skillcard.

And I don't know what variable isn't defined because I don't have the code, you do.

So how would I activate it then once you click the skillcard?
In response to Chaorace
Check your indentation.

Make a proc and call that when you click Chidori.
Undefined proc:

"Now everytime I put under click Chidori() or mob/verb/Chidori()"

The path is mob/attacks/verb/chidori(), not mob/verb/chidori().
Chaorace wrote:
Okay this is my code for my Skillcard for this technique


    Skillcards
> Ninjutsu
> icon = 'Hotkeys.dmi'
> JutsuType = "Ninjutsu"
>
> Chidori
> icon_state = "Chidori"
> name = "Chidori"
> Click()
>
> And here's the code for it the Chidori
>
> <dm>mob
> Attacks
> verb
> Chidori()
> set name = "Chidori"
> if(usr.chakra >= 150)
> src << "You do not have enough Chakra, please rest"
> return
> if(usr.Sleep==1)
> src << "You cannot disturb the gathering prcoess"
> return
> if(usr.Stuck==1)
> src <<"You're frozen. You cannot use Chidori at this time!"
> return
> if(usr.ChidoriActivated==1)
> return
> if(!usr.Activate)
> src.chakra -= 150
> src.Activate = 1
> flick('BaseW.dmi', src)
> flick("Chidori",src)
> src.Stuck = 1
> sleep(7)
> src.Stuck = 0
> view() <<"<font size=1><font face=verdana><b><font color=White><font size = 1>[usr]<font color= white> says: Chidori!"
> src.overlays += 'Chidori.dmi'
> src.ChidoriActivated = 1
> sleep(50)
> if(usr.ChidoriActivated==1)
> src<< "Your Chidori has run out of energy."
> src.overlays -= 'Chidori.dmi'
> src.Activate = 0
> src.ChidoriActivated = 0
>

Now everytime I put under click Chidori() or mob/verb/Chidori()


I get undefined proc for the first one and undefined var for the second. I need to know how I can make this work.

The Click() command,is causing the error,cuz there's nothing bellow of it.
In response to Nakano15
Nakano15 wrote:
Chaorace wrote:
Okay this is my code for my Skillcard for this technique


    Skillcards
> > Ninjutsu
> > icon = 'Hotkeys.dmi'
> > JutsuType = "Ninjutsu"
> >
> > Chidori
> > icon_state = "Chidori"
> > name = "Chidori"
> > Click()
> >
> > And here's the code for it the Chidori
> >
> > <dm>mob
> > Attacks
> > verb
> > Chidori()
> > set name = "Chidori"
> > if(usr.chakra >= 150)
> > src << "You do not have enough Chakra, please rest"
> > return
> > if(usr.Sleep==1)
> > src << "You cannot disturb the gathering prcoess"
> > return
> > if(usr.Stuck==1)
> > src <<"You're frozen. You cannot use Chidori at this time!"
> > return
> > if(usr.ChidoriActivated==1)
> > return
> > if(!usr.Activate)
> > src.chakra -= 150
> > src.Activate = 1
> > flick('BaseW.dmi', src)
> > flick("Chidori",src)
> > src.Stuck = 1
> > sleep(7)
> > src.Stuck = 0
> > view() <<"<font size=1><font face=verdana><b><font color=White><font size = 1>[usr]<font color= white> says: Chidori!"
> > src.overlays += 'Chidori.dmi'
> > src.ChidoriActivated = 1
> > sleep(50)
> > if(usr.ChidoriActivated==1)
> > src<< "Your Chidori has run out of energy."
> > src.overlays -= 'Chidori.dmi'
> > src.Activate = 0
> > src.ChidoriActivated = 0
> >

Now everytime I put under click Chidori() or mob/verb/Chidori()


I get undefined proc for the first one and undefined var for the second. I need to know how I can make this work.

The Click() command,is causing the error,cuz there's nothing bellow of it.

I knew that already xD. I jsut lef tit without anything because thats where chidori went, anyways I already complete and got it figured out. Thanks though!

I also didn't feel like making a new post but, for some reason the skill cards are all connected to each person. Like I was doing a test with a few friends, and I would drag the skillcards to the hotkey bar, and once there, if I moved the skillcards around, my friend would see them move on his screen, and if he moved them, i would see them move on my screen. How can i fix that, so it doesn't happen?