Page 1 of 1

1 person party script

Posted: Mon Sep 17, 2012 6:37 am
by Fuzzyfrank
I would really enjoy, along with many others, a script to make it so that no matter what, the party is one person.

Re: 1 person party script

Posted: Mon Sep 17, 2012 8:59 am
by antti
Here you go:

Code: Select all

party:getChampion(2):setEnabled(false)
party:getChampion(3):setEnabled(false)
party:getChampion(4):setEnabled(false)
Just add this code to a script entity.

Re: 1 person party script

Posted: Mon Sep 17, 2012 9:25 am
by lowzei
When you're doing a 1 person party, can you also allow making it a multiple class character?

And as for removing: How can you delete entities (items, monsters)?

Re: 1 person party script

Posted: Mon Sep 17, 2012 9:32 am
by antti
lowzei wrote:When you're doing a 1 person party, can you also allow making it a multiple class character?

And as for removing: How can you delete entities (items, monsters)?
Currently there classes are hardcoded into the game and multiclasses are thus not possible. The best way to delete an item or a monster at the moment is to teleport it away to a secure location in some corner of the map.

Re: 1 person party script

Posted: Mon Sep 17, 2012 9:36 am
by lowzei
Hmm, i'm not sure how to do it. For instance i want the player to place a number of certain items on an altar. If he reaches that number i want to remove all the items he put on there and replace them with a reward. Is this currently possible?

Re: 1 person party script

Posted: Mon Sep 17, 2012 9:52 am
by antti
lowzei wrote:Hmm, i'm not sure how to do it. For instance i want the player to place a number of certain items on an altar. If he reaches that number i want to remove all the items he put on there and replace them with a reward. Is this currently possible?
Oh, I see. With alcoves you can't teleport items away so there's no way to remove them from there at the moment. The ability to do so is on our todo list but bugs and more major issues take priority though.

Re: 1 person party script

Posted: Mon Sep 17, 2012 10:09 am
by lowzei
Okay, thanks! Answers like this safe a lot of the sadly rather limited time for using the editor.