Jump to content

Photo

Item Pickup Script can anyone make?


  • Please log in to reply
6 replies to this topic

#1 shadowfall1976

shadowfall1976

    Doyen(ne)

  • Members
  • Real Name:Brian
  • Location:Michigan, US

Posted 19 November 2007 - 06:29 PM

I need a generic script for making a string display when an item is picked up.
Can anyone help me out? I would appreciate it very much.

#2 Joe123

Joe123

    Retired

  • Members

Posted 19 November 2007 - 06:39 PM

Check AGN.

#3 Nimono

Nimono

    Ultra Miyoa Extraordinaire!

  • Members
  • Real Name:Matthew
  • Location:Static Void Kingdom

Posted 19 November 2007 - 07:00 PM

QUOTE(shadowfall1976 @ Nov 19 2007, 06:29 PM) View Post

I need a generic script for making a string display when an item is picked up.
Can anyone help me out? I would appreciate it very much.

Check my Realm of Mirrors demo in the expo. You can get said script there. icon_wink.gif

#4 shadowfall1976

shadowfall1976

    Doyen(ne)

  • Members
  • Real Name:Brian
  • Location:Michigan, US

Posted 21 November 2007 - 07:05 PM

Matthew, I can't extract your scripts, the archives are corrupted.
I would like to use your Shop script, and what does the Deep Water do?

#5 Sprotret

Sprotret

    What do you mean I don't believe in god?

  • Banned
  • Location:Texas

Posted 21 November 2007 - 08:45 PM

Yeah, me either.

#6 Sephiroth

Sephiroth

    The Legendary Sephiroth

  • Members
  • Location:Somewhere... Lemme know if you find me :)

Posted 27 December 2007 - 12:29 AM

CODE
item script nameofitem {
    void run() {
        Screen->Message(1);
    }
}


Where 1 is the number of the string displayed. Then attach it to the proper item.

#7 Joe123

Joe123

    Retired

  • Members

Posted 28 December 2007 - 08:33 AM

Or alternatively:
CODE
item script message{
    void run(int m) {
        Screen->Message(m);
    }
}


Where 'D0' on the applied item is the string to be played.
Saves having a seperate script for every item.


Everybody and their brother has written this script really.

EDIT: Oh yeah, item arguments were only added recently, I can't recall the version number off the top of my head, but if you use the latest beta you'll be fine.

Edited by Joe123, 28 December 2007 - 08:34 AM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users