Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
But more generally, it sounds like there is not scripting around adding Curses, so we will continue to do manually (I believe there is scripting to remove them once used).
Well except adding a new deck.
I was actually looking to post this seperately, let me know if that is a more proper way to get this post to the community, anyway this seems the right place
ive written the code to do what you ask for
it sort of follows the code-flow of the original mod
Added 2 buttons to the 'battle-interface'
that call drawBless and drawCurse respectively
Note that the way its now it needs an extra entry at global.ttslua line 25
hope this helps :)
ps. there is not 'no scripting' for the cards on the right, after being drawn, the blesses/curses do get returned to their respective decks automatically ;)
I figured out where to add it. For others; you need to add the code above to the globalui in addition to the line 25. I did around line 1172. (But i suppose it can go anywhere?)
Then in the battle interface ui for the buttons you have to add the buttons to that ui.
<HorizontalLayout spacing="5">
<Button onClick="drawBless">
<Text>Draw Bless</Text>
</Button>
<Button onClick="drawCurse">
<Text>Draw Curse</Text>
</Button>
</HorizontalLayout>
I added that around line 120 in the global ui file.
yes, the code can go anywhere in global.ttslua
Changes:
1) Biggest Change is that there is now a return bless/curse button (mainly for if you make a mistake)
2) Monster Curse/Bless !
As before, im not sure this is the right way to share these things, pasting code in comments is rather cumbersome and inefficient tbh
please let me know if there is a more proper way, or if you simply want more info :)
anyway, here we go
Add Buttons to the Battle Interface:
Add These at global.ttslua line 25: (they are the location of the bless/curse cards)
if you don't want that, set
Also Define this table in global.ttslua (i did so at line ~1600, right after the definition of colorToPlayer, as they fulfill the same role)
Then, anywhere, in global.ttslua, drop these functions (for me its lines ~700)