View Single Post
  #3  
Old 08-19-2008, 08:47 AM
TrashcanPatrol TrashcanPatrol is offline
Member
 
Join Date: Aug 2008
Posts: 43
I'm not completely sure I'm following... Once I get the index, I'm not sure how to call it up only for a certain selection once I do a certain action (clicking the avatar, per se)
Also I'm not too sure if I know even how to trigger an event by clicking on an avatar either >_<
This link had a little example of a pre-selected option that prints the object that's selected... but I already know how to print things when items are selected. What I'm using is this:

Code:
def onList(e):
	if e.object == DropDown and e.newSel == 4:
		print 'A equipped'
		patient.execute(4)
		viz.message('A equipped')
	if e.object == DropDown and e.newSel == 1:
		viz.message('B equipped')
	if e.object == DropDown and e.newSel == 2:
		viz.message('C equipped')
	if e.object == DropDown and e.newSel == 3:
		viz.message('D equipped')
	if e.object == DropDown and e.newSel == 5:
		viz.message('E equipped')
0 is Empty hands so I figured not to do anything for that. I'm trying to get it so that when the player selects the fourth option he'll be able to use it on the avatar
Sorry about all these questions too, I hope I'm not being bothersome
Reply With Quote