View Single Post
  #14  
Unread 05-19-2005, 06:23 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Quote:
Originally Posted by Profit
Thanks DB

I'm looking at the If statements now, but really need an example to continue.
For future reference, it's actually much simpler. :P

(Button_object).Activated=(X==Y)

(Button_object)'s OnActivate event triggers if X=Y. Otherwise, the OnDeActivate triggers. Just put the scripts into each event.

It's usually slightly more complicated than that (OnActivate won't trigger if Activated=true already), but in this case we don't need that since we want the change state to correspond directly to the true/false value at all times.
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 05-19-2005 at 06:25 AM.
Reply With Quote