Craft The World

Craft The World

View Stats:
yamitami Jul 4, 2015 @ 2:31am
permenant portal item?
I've started fooling around with the data folders to kind of learn how to mod and I haven't broken anything yet, but I was wondering if anyone was already working on a permanent portal? I feel like there should be a buildable portal to go along with the stockpile. I want to make it expensive (using mithril for sure) to avoid it being an outright cheat, but on the larger maps it would be great to be able to have just one or two of those set up so I don't have to guzzle as many mana potions.

Has anyone created a whole new item before? Are there any tutorials I'm missing on how to make this happen?
< >
Showing 1-3 of 3 comments
ReneMiner Jul 5, 2015 @ 2:16am 
So to say you want to craft a teleporter-system?
This is impossible to add by some simple modification because the AI does not know about the type of connection nor that it should use the new shortcut from one place to another.
Also: How to connect the teleporters? Can a dwarf enter at any point and leave at a certain exit or at any exit? Lot's of things to consider...
i would say No, it's impossible to modify the game that way, this would have to be hard-coded to the game-engine to work.
You may either lower the mana-regeneration-time, lower the mana-cost of portal spell, raise the portal-spell-time or lower the portal-usage-fee of currently 5 seconds.
These changes can be done in data\world.xml & in data\items.xml

The only things that i added succesfully to the game were new recipes for already existing items but that's only useable in sandbox-mode
Last edited by ReneMiner; Jul 5, 2015 @ 2:17am
larobin Nov 29, 2023 @ 12:22pm 
Don't know if you're still looking for an answer but I've had some success, albeit with minimal testing.

In the data\items.xml search for <item name="mportal" and look for properties
properties="magic,magic_portal,time=240,use_mana=2,radius=1,stayin

By deleting the time section you'll have permanent 'teleports' (pay attention to the commas!)
So: properties="magic,magic_portal,time=240,use_mana=2,radius=1,stayin"
Becomes: properties="magic,magic_portal,use_mana=2,radius=1,stayin"

Let me know how you got on (if you're still playing CTW)
Harris Nov 29, 2023 @ 4:13pm 
I wish the portals where still like they where in 0.9 beta, they used to cost mana depending on range and then last for the time limit, using the portal didnt reduce the timer like now.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jul 4, 2015 @ 2:31am
Posts: 3