You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Card-scripting-API/AbilityFactory.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ The SpellDescription for secondary abilities (both AB and DB) is now displayed w
55
55
Remembering is often needed when a card becomes a new object, which is then further affected by the ability. Typical example: [Flicker](https://github.com/Card-Forge/forge/blob/master/forge-gui/res/cardsfolder/f/flicker.txt)<br />
56
56
Because cards keep their remembered parts when changing zones manual [cleanup](#Cleanup) is usually required.
57
57
58
+
## Duration
59
+
58
60
## AI params
59
61
60
62
`IsCurse$ True` - For effects that are normally treated positive e.g. Pump
@@ -207,6 +209,8 @@ Attach separates the actually granting of abilities from the attaching to perman
207
209
208
210
## BecomeMonarch
209
211
212
+
No own parameters.
213
+
210
214
## Bond
211
215
212
216
Soulbonding two creatures. Only used internally by the engine.
@@ -306,7 +310,6 @@ Parameters:
306
310
Copies a permanent on the battlefield.
307
311
308
312
Parameters:
309
-
310
313
- NumCopies - optional - the number of copies to put onto the
311
314
battlefield. Supports SVar:X:????.
312
315
- Keywords - optional - a list of keywords to add to the copies
@@ -317,7 +320,9 @@ Parameters:
317
320
318
321
### CopySpellAbility
319
322
320
-
Copies a spell on the stack (Twincast, etc.).
323
+
Parameters:
324
+
- Num$ <Integer>
325
+
- Restrict$ <String>
321
326
322
327
## Counter
323
328
@@ -413,8 +418,6 @@ Remove any type of counter from all valid cards.
413
418
414
419
### Proliferate
415
420
416
-
No own parameters.
417
-
418
421
### MoveCounters
419
422
420
423
Used for cards that Move Counters on Resolution, requiring the Host card
@@ -2,7 +2,7 @@ A reference guide for scripting cards using the API parsed by the Forge engine.
2
2
3
3
# Base Structure
4
4
5
-
By opening any file in the /res/cardsfolder folder you can see the basic structure of how the data is created.<br />
5
+
By opening any file in the /res/cardsfolder folder you can see the basic structure of how the data is created.
6
6
Here's an example of a vanilla creature:
7
7
8
8
```
@@ -13,11 +13,11 @@ PT:2/2
13
13
Oracle:
14
14
```
15
15
16
-
The name of this card is Vanilla Creature.<br />
17
-
It's casting cost is {2}{G}.<br />
18
-
It has the types Creature and Beast.<br />
19
-
It has a Power-Toughness of 2/2.<br />
20
-
It will not display any additional text in the card's template.<br />
16
+
The name of this card is Vanilla Creature.
17
+
It's casting cost is {2}{G}.
18
+
It has the types Creature and Beast.
19
+
It has a Power-Toughness of 2/2.
20
+
It will not display any additional text in the card's template.
21
21
22
22
If a card has two faces, use AlternateMode:{CardStateName} in the front face and separate both by a new line with the text "ALTERNATE".
23
23
@@ -60,85 +60,39 @@ All keywords need to be prepended with "K:" to be parsed correctly. Each keyword
60
60
61
61
## Keywords without Parameters
62
62
63
-
This section is for Keywords that require no additional parameters and are one or two words long. Most of these you would see exactly on cards in the game.<br />
63
+
This section is for Keywords that require no additional parameters and are one or two words long. Most of these you would see exactly on cards in the game.
Copy file name to clipboardExpand all lines: docs/Creating-a-custom-Card.md
-45Lines changed: 0 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,51 +2,6 @@ Using the Forge API you can create your own custom cards and sets. This tutorial
2
2
3
3
If you are trying to script cards for a new set make sure you take advantage of the [Developer Mode](Development/DevMode.md) for testing to try and contribute without any obvious bugs.
Copy file name to clipboardExpand all lines: docs/Creating-a-custom-Set.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,8 +135,6 @@ Save your file, and let's move onto another step.
135
135
136
136
## Scripting your first cards
137
137
138
-
As mentioned earlier, your custom card rules need to be located inside `%appdata%/Forge/custom/cards`. I recommend creating subfolders for each starting letter (`Forge/custom/cards/a`, `Forge/custom/cards/b`, etc.) to quickly find if a card has a duplicate name.
139
-
140
138
Now, you might remember than Unearth was an existing MTG card so we do not need to create a custom card rule for it. Let's create a few others.
141
139
> This tutorial will not teach you to script your cards, and they might not be perfect. Please check out [Creating a Custom Card](https://github.com/Card-Forge/forge/wiki/Creating-a-Custom-Card) if you want more info, or look at the existing cards to learn more complex scripting.
142
140
@@ -205,8 +203,6 @@ Oh no! If you play with Inked Summoner now, you will crash when summoning a toke
205
203
206
204
## Scripting custom tokens
207
205
208
-
The token scripts are located at `%appdata%/Forge/custom/tokens`.
209
-
210
206
Let's add the new tokens we need to make Inked Summoner work!
211
207
> Just like for card scripting, this tutorial will not teach you about scripting them.
0 commit comments