nohero123 / textchanger.mod Goto Github PK
View Code? Open in Web Editor NEWchange description and flavor text
change description and flavor text
place your cardtypesmsg.txt file in .../Mojang/Scrolls/game/ and have fun example is on githup-source (old data, containing only cards till noaidi release) you can even lower each of the data from (example of gravelock elder): {"id":1,"name":"Gravelock Elder","description":"Other Gravelock creatures you control gain +1 Attack and +1 Health while Gravelock Elder is in play.","flavor":"Gravelocks look up to their elders... literally.","subTypesStr":"Gravelock","kind":"CREATURE","rarity":2,"hp":5,"ap":3,"ac":2,"costDecay":0,"costOrder":0,"costGrowth":0,"costEnergy":5,"rulesList":["AttackForwardRanged","Move","GravelockStrengthModifier"],"cardImage":479,"animationPreviewImage":445,"animationPreviewInfo":"54.75,50.5,0.25","animationBundle":98,"abilities":[{"id":"Move","name":"Move","description":"Move unit to adjacent tile","cost":{"DECAY":0,"ORDER":0,"ENERGY":0,"GROWTH":0}}],"targetArea":"FORWARD","passiveRules":[{"displayName":"Ranged attack","description":"This unit does not take damage from attacking Spiky units."}],"available":true,"sound":"impact_gravelock_physical"} to {"id":1,"name":"Gravelock Elder","description":"Other Gravelock creatures you control gain +1 Attack and +1 Health while Gravelock Elder is in play.","flavor":"Gravelocks look up to their elders... literally."} note: the begin of the textfile : {"cardTypes":[... and the end: ...],"msg":"CardTypes"} are necessary! if you wanna only change gravelock elder then the cardtypemsg.txt could only contain the following line. (other data is keept from the original server-message): {"cardTypes":[{"id":1,"name":"Gravelock Elder","description":"it does whatever a gravelock elder does!","flavor":"Look at the description, baby!"}],"msg":"CardTypes"} have fun noHero
Use BeforeInvoke
to modify the incoming Message instead of calling reset()
and feed()
. (Make sure you only work with the CardTypesMessage
, because overloaded methods are broken/ignored in Summoner)
public override void BeforeInvoke (InvocationInfo info) {
if (info.arguments[0] is CardTypesMessage) {
CardTypesMessage cardTypeMessage = (CardTypesMessage)info.arguments [0];
foreach(CardType cardType in cardTypeMessage.cardTypes) {
if (cardType.flavor.Length > 0) {
cardType.flavor = "It works";
}
}
}
}
So there need to be the 'old' value of a text. if that old value does not match it will not be replaced.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.