Post by Rodak on Jun 10, 2005 3:20:31 GMT -5
I posted the following in the Common Script Database yesterday:
----------------------------------------------
I was doing my "morning debugging" and wound up in an area where having the party visible made things hard to see.
I was still undecided about whether to show the party, or just the leader, most of the time.
Then I thought I'd let the player decide. Here is a script you can set as a system event, put in the success slot of a direct effect, and create an Item I call a Party Hat!
+=+=+=+=+=+=+=+=
Script Branch: Condition: Flag [Party Hat] Off
Party: Gather Speed=Normal
Party: Show Leader
Data: Flag: [Party Hat] On
Script Control: Force Script End
Script Condition End
Script Branch: Condition: Flag [Party Hat] On
Party: Display: Show Party
Data: Flag: [Party Hat] Off
Script Condition End
+=+=+=+=+=+=+=+=
As always, the empty line is just to emphasize structure.
Now people on both sides of this debate can enjoy my game! OK, maybe not. But they can at least choose whether or not to show the party.
<><><><><><><><><><><><><>
EDIT:
<><><><><><><><><><><><><>
I think I like "Party Favor" better. It's more descriptive and less likely to be mistaken for armor.
--------------------------------------------------------
Then WilliamKirk posted this:
-------------------------------
You'll run into the problem that the player can change the party's order through the default menu. I'll record my scripts/events/indirect effects and post them here, but I don't know how to change mine so that the player has the choice.
-------------------------------
I tested it and I can reorder the party with no bugs. The only problem I found was in pre-existing scripts that used the "show party" command. I had to add a condition based on the "Party Hat" flag (I still have not re-renamed it) telling it to display the leader instead if the flag was in the on position. I am using the Generalized "Party" commands, not the specific "Member" commands. This may be the cause of the confusion.
Am I missing something?
I often miss obvious things with this system.
I am asking here because it seemed wrong to start a "Q & A" in the database.
While I would like to hear from William on this, I thought I'd throw it out for anyone to answer and everyone to see.
Peace.
*******************
EDIT:
*******************
OK, I found the error just before I left for work.
Reordering with the party hidden, and changing leaders, causes an invisible leader.
I will try making an indirect effect that tracks the member order or leader name or whatever, and if it changes simply hide and redisplay the party.
That should solve the problem.
But if WilliamKirk has been working on it for a while, I doubt that my first thought will fix it.
The only potential bug with this solution I foresee is that it may not take effect until the player "takes a step" so the effect can run it's check.
Oy.
----------------------------------------------
I was doing my "morning debugging" and wound up in an area where having the party visible made things hard to see.
I was still undecided about whether to show the party, or just the leader, most of the time.
Then I thought I'd let the player decide. Here is a script you can set as a system event, put in the success slot of a direct effect, and create an Item I call a Party Hat!
+=+=+=+=+=+=+=+=
Script Branch: Condition: Flag [Party Hat] Off
Party: Gather Speed=Normal
Party: Show Leader
Data: Flag: [Party Hat] On
Script Control: Force Script End
Script Condition End
Script Branch: Condition: Flag [Party Hat] On
Party: Display: Show Party
Data: Flag: [Party Hat] Off
Script Condition End
+=+=+=+=+=+=+=+=
As always, the empty line is just to emphasize structure.
Now people on both sides of this debate can enjoy my game! OK, maybe not. But they can at least choose whether or not to show the party.
<><><><><><><><><><><><><>
EDIT:
<><><><><><><><><><><><><>
I think I like "Party Favor" better. It's more descriptive and less likely to be mistaken for armor.
--------------------------------------------------------
Then WilliamKirk posted this:
-------------------------------
You'll run into the problem that the player can change the party's order through the default menu. I'll record my scripts/events/indirect effects and post them here, but I don't know how to change mine so that the player has the choice.
-------------------------------
I tested it and I can reorder the party with no bugs. The only problem I found was in pre-existing scripts that used the "show party" command. I had to add a condition based on the "Party Hat" flag (I still have not re-renamed it) telling it to display the leader instead if the flag was in the on position. I am using the Generalized "Party" commands, not the specific "Member" commands. This may be the cause of the confusion.
Am I missing something?
I often miss obvious things with this system.
I am asking here because it seemed wrong to start a "Q & A" in the database.
While I would like to hear from William on this, I thought I'd throw it out for anyone to answer and everyone to see.
Peace.
*******************
EDIT:
*******************
OK, I found the error just before I left for work.
Reordering with the party hidden, and changing leaders, causes an invisible leader.
I will try making an indirect effect that tracks the member order or leader name or whatever, and if it changes simply hide and redisplay the party.
That should solve the problem.
But if WilliamKirk has been working on it for a while, I doubt that my first thought will fix it.
The only potential bug with this solution I foresee is that it may not take effect until the player "takes a step" so the effect can run it's check.
Oy.