Jump to content

Photo

I was wondering...


  • Please log in to reply
6 replies to this topic

#1 XMSB

XMSB

    Furry Friends Furever

  • Members
  • Real Name:Joseph Watson
  • Location:San Antonio, Texas

Posted 13 September 2010 - 12:15 AM

Would it be possible to script the following things?

An NPC that gives you rupees only one when you talk to him/her.

An NPC that takes rupees from you only once when you talk to him/her.

An NPC that gives/takes/trades an item when you talk to him/her. (even though this one can easily be done with string control codes and custom items)

Anyway, D0 would be the string to display before giving/taking the rupees/item.
D1 would be the string to display after giving/taking the rupees/item.
D2 would be the amount of rupees/ID of item to give/take.
D3 (for trading only) would be what item to give in return.

Edited by XMuppetSB, 13 September 2010 - 12:15 AM.


#2 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 13 September 2010 - 10:34 AM

this is all possible with using string control codes, but i know it is also possible with scripting icon_smile.gif

#3 XMSB

XMSB

    Furry Friends Furever

  • Members
  • Real Name:Joseph Watson
  • Location:San Antonio, Texas

Posted 13 September 2010 - 04:47 PM

Uh... If you use a string control code that gives or takes rupees, the NPC would take your rupees multiple times and I can't think of any way to get it to where the string only takes the rupees once.

Edited by XMuppetSB, 13 September 2010 - 04:49 PM.


#4 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

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

Posted 13 September 2010 - 04:54 PM

Easiest way would be to simply modify one of the existing NPC scripts you are using. Should be very easy. Can you post or link that one?

#5 XMSB

XMSB

    Furry Friends Furever

  • Members
  • Real Name:Joseph Watson
  • Location:San Antonio, Texas

Posted 22 September 2010 - 09:40 PM

All right, here's the NPC Script from the database. It's the only one I have in my quest file.

Edited by XMuppetSB, 22 September 2010 - 09:41 PM.


#6 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 18 October 2010 - 07:16 PM

QUOTE(XMuppetSB @ Sep 13 2010, 03:47 PM) View Post

Uh... If you use a string control code that gives or takes rupees, the NPC would take your rupees multiple times and I can't think of any way to get it to where the string only takes the rupees once.
Just letting you know, it is possible. I've done it already icon_sigh.gif

String 1: (switch to string 2 if have item 280) BlahBlahBlah! (Take/Give rupees) (Give item 280)
String 2: BlahBlahBlah!


Things in () are control codes
Item 280 (or what yu want) is just a non-use-item.

The player wouldn't notice, if he switches from string 1 to string 2. icon_biggrin.gif

#7 Dawnlight

Dawnlight

    My name is NOT Jason!

  • Members
  • Real Name:Justin
  • Location:Chicago, IL

Posted 18 October 2010 - 09:43 PM

You can just use a string control code to take whatever amount of rupees. I create a "decoy item" and place its code along with the code where you gain rupees. And I use the code "Whenever you have the decoy item, switch to this string" so that the NPC does not give you rupees.

Edited by Dawnlight, 18 October 2010 - 09:43 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users