Jump to content

Photo

How to make a sword do no damage


  • Please log in to reply
55 replies to this topic

#46 Saffith

Saffith

    IPv7 user

  • Members

Posted 07 July 2011 - 02:20 PM

zscript.txt. If there's anything unclear there, well, just ask.

#47 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 07 July 2011 - 02:28 PM

QUOTE(Saffith @ Jul 7 2011, 01:20 PM) View Post

zscript.txt. If there's anything unclear there, well, just ask.


Umm... I'll double check but I believe it only covers the actual item pointer not the itemdata "this" pointer.

Nope! It's there, just must of missed it.

Edited by blackbishop89, 07 July 2011 - 02:42 PM.


#48 Ventus

Ventus

    Legend

  • Members

Posted 07 July 2011 - 09:23 PM

so have you found out how to make the magic sword ideal work yet?

#49 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 08 July 2011 - 11:06 AM

QUOTE(linktopower @ Jul 7 2011, 08:23 PM) View Post

so have you found out how to make the magic sword ideal work yet?


Have you tried the item script that saffith came up with. It should do what you want it to. icon_smile.gif
CODE
item script MagicSword
{
    void run(int mpCost, int power)
    {
        if(Link->MP>=mpCost)
        {
            Link->MP-=mpCost;
            this->Power=power;
        }
        else
            this->Power=0;
    }
}


#50 Ventus

Ventus

    Legend

  • Members

Posted 08 July 2011 - 10:31 PM

QUOTE(blackbishop89 @ Jul 8 2011, 11:06 AM) View Post

Have you tried the item script that saffith came up with. It should do what you want it to. icon_smile.gif
CODE
item script MagicSword
{
    void run(int mpCost, int power)
    {
        if(Link->MP>=mpCost)
        {
            Link->MP-=mpCost;
            this->Power=power;
        }
        else
            this->Power=0;
    }
}


okay thanks guys i will be putting both of your guy's name in my games credits icon_biggrin.gif

Edited by linktopower, 08 July 2011 - 10:39 PM.


#51 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 08 July 2011 - 10:34 PM

QUOTE(linktopower @ Jul 8 2011, 09:31 PM) View Post

okay got it my game but...
do i have to any thing in the script itself or what you know uh...
because i don't know to use it
i got it set up on a sword but the sword is doing no damage Evan if i have magic what do i do now?


What to you have power set to
Oh and you can toss the old mana sword script. Since it's not used. BTW have you decided whether or not you'll be using my sideview door script in your dungeons/towns.

Edited by blackbishop89, 08 July 2011 - 10:35 PM.


#52 Ventus

Ventus

    Legend

  • Members

Posted 08 July 2011 - 10:44 PM

okay i got it working
and about the that sideview door script
it depends how hard it is to set up
if it isn't that hard i'll go ahead use it icon_biggrin.gif

#53 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 08 July 2011 - 10:46 PM

QUOTE(linktopower @ Jul 8 2011, 09:44 PM) View Post

okay i got it working
and about the that sideview door script
it depends how hard it is to set up
if it isn't that hard i'll go ahead use it icon_biggrin.gif


It's only hard if you don't know what your doing simply add it to the end of your .z file and will go from there via PM. I'll walk you through setting it up and everything. It's real easy since it's a stand alone ffc combo.

#54 Ventus

Ventus

    Legend

  • Members

Posted 08 July 2011 - 11:08 PM

eh... i don't know i think i will keep using the scripts that already have for right
now but it'll be a thought in the future though thanks

#55 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 09 July 2011 - 10:36 AM

QUOTE(linktopower @ Jul 8 2011, 10:08 PM) View Post

eh... i don't know i think i will keep using the scripts that already have for right
now but it'll be a thought in the future though thanks


Well I strongly suggest it since it adds the illusion of depth and prevents me from having jumping over houses which is what inspired me to write it in the first place.

#56 Ventus

Ventus

    Legend

  • Members

Posted 09 July 2011 - 10:59 AM

okay i think i'm go ahead and use it just make sure you help me here when i need it



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users