Difference between revisions of "LUA:RemoveWard"

(Created page with "= LUA Functions: HasGroup() = Checks to see if the given spawn has a group ==== Syntax ==== HasGroup(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' ...")
 
 
Line 1: Line 1:
= LUA Functions: HasGroup() =
+
= LUA Functions: RemoveWard() =
Checks to see if the given spawn has a group
+
Removes the ward from all of its targets
  
 
==== Syntax ====
 
==== Syntax ====
HasGroup(param1)
+
RemoveWard()
  
  
 
==== Parameters ====
 
==== Parameters ====
; Required - ''param1'' (Spawn)
+
; None
: ''param1'' is the spawn we want to check
 
  
 
==== Usage ====
 
==== Usage ====
 
<pre>
 
<pre>
function hailed(NPC, Spawn)
+
function remove(Caster, Target)
     if HasGroup(NPC) then
+
     RemoveWard()
        Say(NPC, "I have friends!")
 
    else
 
        Say(NPC, "I am a loner!")
 
    end
 
 
end
 
end
 
</pre>
 
</pre>
  
This will cause the spawn to say if they are in a group or not when hailed
+
Removes the ward this spell applied
  
 
== Notes ==
 
== Notes ==
This will work on both NPC's and player's
+
Can only be used in a spell script
 +
 
 +
Removes the ward from all the spells targets

Latest revision as of 22:35, 28 August 2013

LUA Functions: RemoveWard()

Removes the ward from all of its targets

Syntax

RemoveWard()


Parameters

None

Usage

function remove(Caster, Target)
    RemoveWard()
end

Removes the ward this spell applied

Notes

Can only be used in a spell script

Removes the ward from all the spells targets