proc
statesearch(icon as icon, string as text)
var/icon/I = new(icon)
var/list/L = list()
L += I.IconStates()
if(L.Find(string))
return 1
else
return 0
ID:171682
Aug 21 2004, 6:50 pm
|
|
How would i get a verb to call this proc
|
Aug 21 2004, 7:07 pm
|
|
In response to Loduwijk
|
|
ITs supose to come up with a list box showing the names of the states in the icon u are currently using. like in Icon Chatterz
|
In response to ElderKain
|
|
The IconStates function will return a list of the icon states in an icon for you. Have the user select from that list with the input function.
|
In response to Loduwijk
|
|
Well when i used the Verb u gave, it came up with an open file windo, then after chosing the file, it got all screwy and asks u type the name of the icon state. that wasn't what i was asking for.
|
In response to ElderKain
|
|
If you just want the player to be able to select one of the icon states that are in the mob's icon, you could just do something like the following.
mob/verb/change_icon_state() That should be self explanitory. |