VFSniper said:
Trigger Weapon Upgrade Sniper HK416 (preserved)
Conditions
If mission varaible 'downgrade' is '0'
Human has equal to 1 itemtaggedequipped 416USI @ gunsmith
Human has equal to 1 itemtagged hk416
I'm presuming the highlighted line is a token or chit to get the upgrade done?
You don't actually need variables with these triggers, just add a condition to each to prevent the player causing the feed back loop if they have both tokens equipped at once.
Trigger Weapon Upgrade Sniper HK416 (preserved)
Conditions
Human has equal to 1 itemtaggedequipped 416USI @ gunsmith
Human has equal to 1 itemtagged hk416
Human has equal to 1 itemtagged scope
Human has less than 1 itemtaggedequipped hk416
Human has less than 1 itemtaggedequipped scope
Human has less than 1 itemtaggedequipped 416DSI @ gunsmith
Actions
Give item tagged scope to B1_Giver
Give item tagged hk416 to B1_Giver
Wait
Give item tagged hk416US from B1_Giver to human
Entity GS_B1 will use speechnode GS_Finished
Trigger Weapon downgrade Sniper HK416 (preserved)
Conditions
Human has equal to 1 itemtaggedequipped 416DSI @ gunsmith
Human has equal to 1 itemtagged hk416US
Human has less than 1 itemtaggedequipped hk416US
Human has less than 1 itemtaggedequipped 416USI @ gunsmith
Actions
Give item tagged hk416US to B1_Giver
Wait
Give item tagged hk416 from B1_Giver to human
Give item tagged scope from B1_Giver to human
Entity GS_B1 will use speechnode GS_Finished