Jump to content

Photo

Bottles (Kinda, a simpler version)


  • Please log in to reply
9 replies to this topic

#1 Majora

Majora

    Unironic Marxist-Leninist

  • Members

Posted 23 August 2009 - 11:17 AM

Sorry 'bout the thread subtitle, just a little exasperated due to how 99% of my request threads go.


Anyways, I REQUEST four seperate tiny item scripts.


1) On use restores 100% HP and spawns item x in your inventory

2) On use restores 100% MP "

3) On use restores 100% MP and HP "

4) This is item x, which is nothing more than a "bottle". When you acquire any of the three previous items, this item will get overwritten, but there will be four instances of this item in your inventory.


I tried doing a pseudo bottles system with item classes and junk but it refuses to work properly. >.< I believe I got everything, but if any more details are missing or questions or etc. jab me with a fork.

OPTIONAL:

5) WW's Elixir soup; On use restores 100% MP and HP and gives you a certain (meaning, a D variable can be set, or it can be edited within the script itself) item until you take damage. Though I'm pondering the idea of "you lose the item when you take either 1, 2, or 3 hits".

#2 Joe123

Joe123

    Retired

  • Members

Posted 23 August 2009 - 11:25 AM

I'll have you know I read all of your script requests.

#3 Majora

Majora

    Unironic Marxist-Leninist

  • Members

Posted 23 August 2009 - 11:47 AM

And I thank you D:

Now script even one and I'll love you immensely. No homo, bro. icon_slycool.gif

#4 Joe123

Joe123

    Retired

  • Members

Posted 23 August 2009 - 11:56 AM

CODE
//D0 is item to give
item script RestoreHPGiveItem{
    void run(int i){
        Link->HP = Link->MaxHP;
        Link->Item[i] = true;
    }
}

item script RestoreMP{
    void run(){
        Link->MP = Link->MaxMP;
    }
}

item script RestoreBoth{
    void run(){
        Link->HP = Link->MaxHP;
        Link->MP = Link->MaxMP;
    }
}


You're lucky, those three are all very easy scripts.
A lot of the things you request (or at least some of them I'm sure) require a lot more effort than this, which is why I don't write them.

#5 Majora

Majora

    Unironic Marxist-Leninist

  • Members

Posted 23 August 2009 - 01:17 PM

Dude I love you ;-;

#6 Joe123

Joe123

    Retired

  • Members

Posted 23 August 2009 - 02:32 PM

Maybe you should have a go learning some of ZScript?
It's not actually that hard, especially if you're writing scirpts similar to those two.

#7 Majora

Majora

    Unironic Marxist-Leninist

  • Members

Posted 23 August 2009 - 02:38 PM

I have little choice but to do so. I guess it can only get better from this point on xD

Edited by Majora, 23 August 2009 - 02:38 PM.


#8 Joe123

Joe123

    Retired

  • Members

Posted 23 August 2009 - 02:41 PM

Oh well it doesn't look like you were doing too badly back there.
I'm sure you'll pick it up if you stick with it.

Feel free to ask questions and whatnot.

#9 Drewby3

Drewby3

    veteran member

  • Members

Posted 03 May 2010 - 01:20 AM

can you or joe post a script tutorial that shows step by step the script process of a simple item? so newby scripters can learn from it?

#10 Adem

Adem

    -

  • Members
  • Real Name:Anything except rap and country.
  • Location:New England

Posted 03 May 2010 - 04:03 PM

QUOTE(Drewby3 @ May 3 2010, 02:20 AM) View Post

can you or joe post a script tutorial that shows step by step the script process of a simple item? so newby scripters can learn from it?

Basic and Advanced Scripting tutorials. Though this is a rather old thread. I'm not sure if it's grave digging or not, but seeing as the request has been fulfilled, I'd suggest simply PMing somebody next time. icon_wink.gif

Hope that's not Rent-A-Moding...Enjoy the tutorials.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users