Switching one object to another

This forum is for discussing anything related to The Quest editor.

Switching one object to another

Postby Reckoner » Tue Sep 12, 2017 10:57 pm

Is it possible to script an object to switch from one ID to another? What about switching its image ID? I'm looking to add the ability to chop down trees in my expansion, and would like to be able to transform a tree to a stump.

Thanks.
User avatar
Reckoner
 
Posts: 22
Joined: Thu Sep 07, 2017 6:39 pm

Re: Switching one object to another

Postby Elendil / Redshift » Wed Sep 13, 2017 9:02 am

That's not possible, sorry. You can script a tree to disappear when you chop it down, but you cannot put a tree stump in it's place.

You can only do limited things to map objects, most importantly you cannot create/delete them and you cannot put two of them on the block in the editor (to show one and hide the other).

The only way I can imagine doing something like what you want at the moment is to create a map with a forest and one with cut down trees and move/teleport the player instantaneously when he chops them down. And keep everything else looking the same on the maps, including other items/monsters (hard/basically there can be no monsters which move/can be killed because the differences couldn't be kept in check) and all exits/entrances to the map (most likely can only be kept the same with underground maps). So basically no real way, sorry.
User avatar
Elendil / Redshift
Site Admin
 
Posts: 940
Joined: Sun Oct 09, 2011 11:35 am

Re: Switching one object to another

Postby Reckoner » Wed Sep 13, 2017 9:54 pm

Elendil / Redshift wrote:The only way I can imagine doing something like what you want at the moment is to create a map with a forest and one with cut down trees and move/teleport the player instantaneously when he chops them down. And keep everything else looking the same on the maps, including other items/monsters (hard/basically there can be no monsters which move/can be killed because the differences couldn't be kept in check) and all exits/entrances to the map (most likely can only be kept the same with underground maps). So basically no real way, sorry.


That's an interesting idea. It wouldn't feasibly work for my expansion's surface maps, but as you said, I could see it having some use in underground maps. I'll just have to make due with switching the visibility of the trees off. Thanks a lot!
User avatar
Reckoner
 
Posts: 22
Joined: Thu Sep 07, 2017 6:39 pm


Return to Editor

Who is online

Users browsing this forum: No registered users and 7 guests

cron