Jump to content

Photo

Telepathic Tile (help/hint item)


  • Please log in to reply
2 replies to this topic

#1 klop422

klop422

    Guess I'm full of monsters and treasure

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

Posted 31 July 2018 - 05: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 coolgamer012345

coolgamer012345

    🔸

  • Members
  • Location:Indiana, USA

Posted 31 July 2018 - 07: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 - 07:07 PM.


#3 klop422

klop422

    Guess I'm full of monsters and treasure

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

Posted 01 August 2018 - 03: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.


  • coolgamer012345 likes this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users