Thread: Chest class
View Single Post
  #4  
Old 10-09-2011, 04:59 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Won't the use of the same GUI control names within multiple different level NPCs cause problems?
For instance opening a chest in one level will also invoke the actions within chests you've seen within different levels.
You could either move the GUI scripts into a weapon and communicate with that weapon from the class, or create GUIs with dynamic names and use catchevent(); to be able to receive the action.
Reply With Quote