-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scripting zone over ravage area so salt card can detect when it…
… enters the zone and automatically lock
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"Name": "ScriptingTrigger", | ||
"Transform": { | ||
"posX": -42.835, | ||
"posY": 1.6, | ||
"posZ": -0.351, | ||
"rotX": 0.0, | ||
"rotY": 0.0, | ||
"rotZ": 0.0, | ||
"scaleX": 2.0, | ||
"scaleY": 1.0, | ||
"scaleZ": 3.0 | ||
}, | ||
"Nickname": "", | ||
"Description": "", | ||
"GMNotes": "", | ||
"AltLookAngle": { | ||
"x": 0.0, | ||
"y": 0.0, | ||
"z": 0.0 | ||
}, | ||
"ColorDiffuse": { | ||
"r": 1.0, | ||
"g": 1.0, | ||
"b": 1.0, | ||
"a": 0.5098 | ||
}, | ||
"LayoutGroupSortIndex": 0, | ||
"Value": 0, | ||
"Locked": true, | ||
"Grid": true, | ||
"Snap": true, | ||
"IgnoreFoW": false, | ||
"MeasureMovement": false, | ||
"DragSelectable": true, | ||
"Autoraise": true, | ||
"Sticky": true, | ||
"Tooltip": true, | ||
"GridProjection": false, | ||
"HideWhenFaceDown": false, | ||
"Hands": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
cardInvaderType="L" | ||
cardInvaderStage=2 | ||
|
||
function onObjectEnterZone(zone, object) | ||
if object ~= self then return end | ||
-- automatically lock the card when it enters the ravage zone | ||
local ravageZoneGUID = "2403e9" | ||
if zone.getGUID() == ravageZoneGUID then | ||
print("locking "..object.getName()) | ||
-- a small wait, to allow it to settle onto the board before being locked | ||
Wait.time(function() self.setLock(true) end, 1) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,3 +190,4 @@ bd26fc | |
8d82f8 | ||
1d80bc | ||
69ead2 | ||
2403e9 |