Creating an equipable item with menu options.

Post » Tue Jun 02, 2015 1:00 am

I'm trying to create an item that, when equipped or unequipped, will give me the option to join or leave certain factions. If I were setting this up for Oblivion, I would script the item to include a messagebox with the various join/leave faction options. In Fallout 3, the "message" and "messagebox" commands have been replaced with "ShowMessage". I cannot for the life of me figure out how to integrate the desired functionality into the "ShowMessage" system. Anybody know how to accomplish what I'm trying to do?
User avatar
Robert Garcia
 
Posts: 3323
Joined: Thu Oct 11, 2007 5:26 pm

Post » Tue Jun 02, 2015 5:35 am

have you tried an armor token?

just attach a script to an empty, weightless armor,

with an OnEquip block to do what you want

edit: you might have to have a script attached to a start game enabled quest that runs on Gameload once to add / remove the armor token.

User avatar
Gavin Roberts
 
Posts: 3335
Joined: Fri Jun 08, 2007 8:14 pm

Post » Tue Jun 02, 2015 10:55 am

I have tried that. In fact, one script I used was:


scn FactionCollarEnclaveBegin OnEquip PlayerPlayer.SetFactionRank EnclaveFaction 0 ;or whatever the Editor ID for the Enclave faction isEndBegin on UnEquip PlayerPlayer.SetFactionRank EnclaveFaction -1End
The problem with this setup is I have to make one item per faction I wish to temporarily join. While it does work, it strikes me as inefficient. I would like to set up an item that, when equipped, let's me choose to join or leave one of several factions. Basically, this is the sequence of events I want to achieve:

1. Player equips item.
2. A menu pops up asking which of the listed factions I wish to join or leave (Brotherhood, Enclave, Outcasts, Raiders, etc.).
3. Player chooses a faction.
4. Player joins said faction if not a member, or leaves said faction if he/she is a member.

I know the menu options of a Message can be set with conditions (such as IsInFaction = 0), but I don't know how to script results based on what option is selected.

If it were possible to attach scripts to Messages, this would be easy. Since that's not an option, I'll have to go about it a different way. I just have no clue as to how to do so.
User avatar
Ashley Clifft
 
Posts: 3468
Joined: Thu Jul 26, 2007 5:56 am

Post » Tue Jun 02, 2015 5:22 am

sorry give me a second, wrong forum

User avatar
Prisca Lacour
 
Posts: 3375
Joined: Thu Mar 15, 2007 9:25 am


Return to Fallout 3