Full Version : On click action?
xmlspawner >>Scripting Support >>On click action?
<< Prev | Next >>
thristam- 01-02-2009
Hi,
I'm trying to figure out how to set a object via xmledit so when the player clicks on the object it does the SENDMSG action. Im assuming that there is a condition called ONCLICK or somthing like that, but i have checked everywhere and i cant seem to find it. Anyone know how you would be able to do this?
The idea is that there is a pile of bones, and when the player clicks on it it says somthing to the effect of "Somthing hungry lives down here..."
Also, if possiable, i would love to find a doc (im sure one exists) that explains all the methods you can use via xmledit to set conditions? I have been to Grimm's site, but it doesn't go into as much detail on most commands.
Thanks for you time =-)
thristam- 01-05-2009
Finally figured this out.
To create a Spawned item that you can click on with details, you would write into the spawner like so:
GrizzledBones/ATTACH/<XmlUse/successaction/@GUMP,Bones,0/You see some Grizzled bones.>
This tells the spawner: Spawn GrizzledBones, then ATTACH the XmlUse to it. On a successful action (just doubleclicking it) pop up a GUMP with the name Bones. The type of GUMP is 0 which is just a plain text box with a ok button, and show the text "you see some Grizzled bones. You use the < and > at the beginning and end in order to define the properties of just the XmlUse attachment so it doesn't try and set those properties to the GrizzledBones them self.
Man, this Utility is so powerful, but so complicated to learn for beginnners. Anyone wanna just download all their Xml making abilities right into my brain? lol