Adding a New Keyword
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Adding a New Keyword
by pipsqueak » 12 Apr 2020, 21:53
I'm working on adding my custom cube to Forge and was curious where new keywords are defined? I don't want to have to copy and paste large blocks of code that describe behavior over and over again.
- pipsqueak
- Posts: 5
- Joined: 12 Apr 2020, 21:43
- Has thanked: 0 time
- Been thanked: 0 time
Re: Adding a New Keyword
by friarsol » 12 Apr 2020, 23:42
It depends on what the keyword is doing. But its all in Java code.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Adding a New Keyword
by pipsqueak » 13 Apr 2020, 20:09
- pipsqueak
- Posts: 5
- Joined: 12 Apr 2020, 21:43
- Has thanked: 0 time
- Been thanked: 0 time
Re: Adding a New Keyword
by friarsol » 14 Apr 2020, 01:20
https://git.cardforge.org/core-develope ... yword.java
Although, just sounds a bit like an Effect. Like ScryEffect
https://git.cardforge.org/core-develope ... ffect.java
Although, just sounds a bit like an Effect. Like ScryEffect
https://git.cardforge.org/core-develope ... ffect.java
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Adding a New Keyword
by pipsqueak » 14 Apr 2020, 04:23
Interesting. So given that those files are not in my local version of forge, I assume I need to fork the github repo and rebuild it locally? Just making sure I don't go off in the wrong direction here.
- pipsqueak
- Posts: 5
- Joined: 12 Apr 2020, 21:43
- Has thanked: 0 time
- Been thanked: 0 time
Re: Adding a New Keyword
by friarsol » 15 Apr 2020, 01:05
Yep. Definitely need the codebase to add keywords.pipsqueak wrote:Interesting. So given that those files are not in my local version of forge, I assume I need to fork the github repo and rebuild it locally? Just making sure I don't go off in the wrong direction here.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: KeithOvart and 84 guests