Page 1 of 1
Clipord stuff
Posted: Fri Jun 14, 2002 1:17 am
by Eagle
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
Posted: Fri Jun 14, 2002 1:58 am
by Jimmyjay86
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
Posted: Fri Jun 14, 2002 2:06 am
by OnTheBounce
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*
Posted: Fri Jun 14, 2002 3:58 am
by Jimmyjay86
I like your solution better OTB, it's doesn't require use of a specific zone.
Posted: Fri Jun 14, 2002 5:55 am
by OnTheBounce
Jimmyjay86 wrote:I like your solution better OTB, it's doesn't require use of a specific zone.
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.
This just goes to show you how you can approach situations differently while scripting, though.
OTB