WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC