Get your own free workspace
View
 

ActorHasEffect

Page history last edited by Gamemaster 3 years, 11 months ago

 

ActorHasEffect

Usage:

                ActorHasEffect(Actor, Effect)

Description:

The ActorHasEffect command returns 1 if an effect is currently active on an actor, or 0 if not. For more information see AddActorEffect.

Example:

                Function Main()
                        Result = ActorHasEffect(Actor(), "Poison")
                        If (Result == 0)
                                Output(Actor(), "You are not poisoned")
                        Else
                                Output(Actor(), "You have been poisoned!")
                        EndIf
                        Return()
                End Function
        

Comments (0)

You don't have permission to comment on this page.