Jump to content

Photo

S00per tiny script request


  • Please log in to reply
3 replies to this topic

#1 Majora

Majora

    Unironic Marxist-Leninist

  • Members

Posted 05 September 2008 - 08:17 PM

A script, an item script (assuming they work within the subscreen) that prevents you from using an item (the script is attached to, this script will be attached to multiple items that all require the same item ID to use) if a specified item ID is not found in your inventory.

So like, example scenario:

3 identical items (in function and item classes) in the subscreen. You can't use ANY unless a specified item ID is found in your inventory. If the item ID is found, you can use the 3 items.

Did I word that clearly? I don't want to be too confusing.

#2 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 06 September 2008 - 04:08 PM

Just assign a pickup script to the main item that does this:


Link->Item[n+1] = true;
Link->Item[n] = false;


//repeat as needed.



..unless the other items themselves are scripted, then you can simply put in something like this;

if(Link->Item[i]){
// den ze item vorks

Edited by Gleeok, 06 September 2008 - 04:11 PM.


#3 Majora

Majora

    Unironic Marxist-Leninist

  • Members

Posted 07 September 2008 - 07:09 PM

I... am not sure how to do either. >_<

#4 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 12 September 2008 - 11:42 PM

the first three items are fake, ie; takes 3 million magic meter just to activate th item.

but then they are replaced by real items once you get something else.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users