ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: holmedog on October 26, 2011, 01:40:02 PM

Title: Creature properties
Post by: holmedog on October 26, 2011, 01:40:02 PM
Does anyone know how to bring up actual creature properties in EUO?  I currently have the ability to find types and all that, what I want is something like the actual name (note: these would be used for a GUI).

So, if I find a type "GO", I would want it to say "a skittering hopper" instead of "GO".
Title: Re: Creature properties
Post by: Crome969 on October 27, 2011, 03:25:42 AM
Does anyone know how to bring up actual creature properties in EUO?  I currently have the ability to find types and all that, what I want is something like the actual name (note: these would be used for a GUI).

So, if I find a type "GO", I would want it to say "a skittering hopper" instead of "GO".
You could use Event property and Scan all Characters of Property until the First $. Then Take out the string until the dfirst $.
The Property is buildet from 2 Parts. Name , Info and setted to one Stringline and then showed in EUO. So you will have to split the Name \Info again:)
Title: Re: Creature properties
Post by: 12TimesOver on October 27, 2011, 04:16:51 AM
I just have a snippet that I hotkey that let's me target an item and get any info I want including #property, #itemtype, etc. Leave it running while I'm doing stuff and hotkey it everytime I see something new I want to add.

You could also make the script dynamic by adding a menu button that allows people to add their own creatures to the list ;)

X
Title: Re: Creature properties
Post by: freddy on October 28, 2011, 12:45:31 AM
Code: [Select]
I use something like this:

 [code]
event property #findid
   set %temp_sid #property
   str pos %temp_sid $
   set %del #strres - 1
   str left %temp_sid %del
    set %prop #strres


http://www.scriptuo.com/index.php?topic=8387.0[/code]
Title: Re: Creature properties
Post by: Paulonius on October 28, 2011, 06:44:59 AM
TM has a tool that allows you to target and pull up properties on things you click.  Poke around the site. 
Title: Re: Creature properties
Post by: holmedog on October 29, 2011, 11:59:52 AM
Code: [Select]
I use something like this:

 [code]
event property #findid
   set %temp_sid #property
   str pos %temp_sid $
   set %del #strres - 1
   str left %temp_sid %del
    set %prop #strres


http://www.scriptuo.com/index.php?topic=8387.0[/code]

Exactly what I needed, thank you.