Is it possible to give any actor a clipord and get something insted.
For example: IYou have a clipord which allows you to get a Plasma rifle from a Quartermaster, thus you loose the clipord and get the plasme rifle insted
(like in Fallout 2 when you get some equipment in Gecko and have to autheresation)
Please help
Clipord stuff
Clipord stuff
"Somtimes being a good person, means doing bad things"
"No laws, no rules and nucler fallout, now it feels like home"
"No laws, no rules and nucler fallout, now it feels like home"
- Jimmyjay86
- Hero of the Glowing Lands
- Posts: 2102
- Joined: Thu Apr 18, 2002 4:02 am
- Location: Wisconsin
- Contact:
Yep, very easily. Just assign a tag name to the clipboard or other item type and the plasma rifle and then use a trigger to exchange the items. The only restriction I can think of is that the NPC that will trade must stay in one particular spot or zone where the transaction takes place.
Condition:
Player Human has exactly 1 item tagged Clipboard
Player NPC has exactly 1 alive at Trade-zone
Trigger:
Give item tagged Clipboard to Player NPC
Give item tagged Plasma Rifle to Player Human
Condition:
Player Human has exactly 1 item tagged Clipboard
Player NPC has exactly 1 alive at Trade-zone
Trigger:
Give item tagged Clipboard to Player NPC
Give item tagged Plasma Rifle to Player Human
- OnTheBounce
- TANSTAAFL
- Posts: 2257
- Joined: Thu Apr 18, 2002 8:39 am
- Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
- Contact:
Yes, it is possible to do something like this. What you have to do is to create a "Generic Item" that uses one of the clipboard sprites and has a "Tag Name" assigned to it.
You then have to set up a trigger that will have a condition of the player having a certain item (the tagged clipboard). Have this condition change the Click Speech for the actor (who will also need a Tag Name) who is going to give the player whatever it is that you want to give him (that item will also need a Tag Name).
When you set up the Speech File, assign a "Speech Event" to the Speech Node that the actor who is going to give the item is going to use. Then use the "Speech Occured" condition and the Action be "Give item to player".
The whole thing will look something like this:
Description: Player has Requisition Form
Condition:
Player 1 has exactly 1 item(s) tagged "clipboard" at Quatermaster Zone.
Action: Change Click Speech for unit "QuarterMaster" to "QM_Gives_Rifle".
Description: Quartermaster Gives Player the Rifle
Condition: Speech Even "QM_Gives_Rifle" has occured
Action: Give item tagged "plasmaRifle" to player.
You will probably want the zone qualifier on the first trigger, that way the player actually has to bring the clipboard to whoever is going to give them the rifle.
Cheers,
OTB
Edit: Friggin' JJ86 beat me to the punch...*grumble, grumble*
You then have to set up a trigger that will have a condition of the player having a certain item (the tagged clipboard). Have this condition change the Click Speech for the actor (who will also need a Tag Name) who is going to give the player whatever it is that you want to give him (that item will also need a Tag Name).
When you set up the Speech File, assign a "Speech Event" to the Speech Node that the actor who is going to give the item is going to use. Then use the "Speech Occured" condition and the Action be "Give item to player".
The whole thing will look something like this:
Description: Player has Requisition Form
Condition:
Player 1 has exactly 1 item(s) tagged "clipboard" at Quatermaster Zone.
Action: Change Click Speech for unit "QuarterMaster" to "QM_Gives_Rifle".
Description: Quartermaster Gives Player the Rifle
Condition: Speech Even "QM_Gives_Rifle" has occured
Action: Give item tagged "plasmaRifle" to player.
You will probably want the zone qualifier on the first trigger, that way the player actually has to bring the clipboard to whoever is going to give them the rifle.
Cheers,
OTB
Edit: Friggin' JJ86 beat me to the punch...*grumble, grumble*
"On the bounce, you apes! Do you wanna live forever?!"
- Jimmyjay86
- Hero of the Glowing Lands
- Posts: 2102
- Joined: Thu Apr 18, 2002 4:02 am
- Location: Wisconsin
- Contact:
- OnTheBounce
- TANSTAAFL
- Posts: 2257
- Joined: Thu Apr 18, 2002 8:39 am
- Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
- Contact:
If you want it to be more or less realistic it does. If you had the condition as "has item tagged X at Anywhere" you could have one guy 17 regions away with the clipboard and another guy next to the chap w/the plasma rifle and you could "requisition" the rifle. While you'd still loose the clipboard/form, a solution like that would leave a bad taste in my mouth.Jimmyjay86 wrote:I like your solution better OTB, it's doesn't require use of a specific zone.
This just goes to show you how you can approach situations differently while scripting, though.
OTB
"On the bounce, you apes! Do you wanna live forever?!"