Jump to content

Photo

Telepathic Tile (help/hint item)


  • Please log in to reply
2 replies to this topic

#1 klop422

klop422

    Evil Crazy Mastermind

  • Members
  • Real Name:Not George
  • Gender:Male
  • Location:Planet Earth

Posted 31 July 2018 - 04:44 PM

This should be, I hope, really simple :P

 

Basically, could someone please script me an item which plays a string when you use it?

What I'm intending to use it for is that the player should be able to get a hint/prompt on what to do next when the item is used. I can change the string using string control codes (checking for what items/triforce pieces the player has, including dummy items), so all I need is a chosen string to play when the item is used.

 



#2 TheBlueTophat

TheBlueTophat

    🔸

  • Members
  • Gender:Male
  • Location:USA

Posted 31 July 2018 - 06:05 PM

Here you go.

item script PlayStringOnUse
{
	void run(int string)
	{
		Screen->Message(string);
	}
}

Put this as the item's Action Script. D0 is the string to play.


Edited by TheBlueTophat, 31 July 2018 - 06:07 PM.


#3 klop422

klop422

    Evil Crazy Mastermind

  • Members
  • Real Name:Not George
  • Gender:Male
  • Location:Planet Earth

Posted 01 August 2018 - 02:22 AM

Thanks! I'll test it when I have time.

Should maybe have done this myself rather than gone through the hassle of requesting. Oh well.


  • TheBlueTophat likes this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users