Making Money Bags for Beginners

From AgeofWiki

Introduction: U_Spawn_U's Triggers for Beginners Guide Series Presents The Making Money Bags for Beginners Guide. This Guide Shows you how to create a Money Bag(Wallet) type of inventory, which lefts the player only store a certain amount of gold. It will tell you the exact Effects and Conditions to use and it will also teach you how to customize this to your liking and teach you to understand what each Trigger is doing.


Triggers Menu:Recreate the following Groups and Triggers to create a basic Money bag that holds 200 Gold Coins for Player 1 And then Increase it to a Money Bag that holds 500 Gold Coins

Group 1

Group Name: P1 200coin Money Bag
Triggers: Activate Warning | Warning | Activate Full | Full | Unknown | Increase Value |
 Activate Warning 2 | Warning 2 
Trigger 1

Trigger Name:Activate Warning | Active:Yes | Loop:Yes | Run Immediately:No | Priority:Med
Conditions:
 Player resource count:Fields= Player:1 | Resource:Coin | Operator:== |Number:200
 Timer:Fields= Seconds:60
Effects:
 Fire event:Fields= Trigger:Warning
Trigger 2

Trigger Name:Warning | Active:No | Loop:No | Run Immediately:No | Priority:Med
Conditions:
 Timer:Fields= Seconds:5
Effects:
 Send chat to player:Fields=From Player:0 | To Player:1 | Message: Warning You Money Bag is Full
Trigger 3

Trigger Name:Activate Full | Active:Yes | Loop:Yes | Run Immediately:No | Priority:Med
Conditions:
 Player resource count:Fields= Player:1 | Resource:Coin | Operator:> |Number:200
 Timer:Fields= Seconds:1
Effects:
 Fire event:Fields= Trigger:Full
Trigger 4

Trigger Name:Full | Active:No | Loop:No | Run Immediately:No | Priority:Med
Conditions:
 Timer:Fields= Seconds:1
Effects:
 Tribute:Fields= From Player:1 | To Player:0 | Resource:Coin | Amount:1
 Send chat to player:Fields= From Player:0 | To Player:1 | Message: You cannot carry any more 
  Gold Coins.
Trigger 5

Trigger Name:Unknown | Active:Yes | Loop:No | Run Immediately:No | Priority:Med
Conditions:
 Unknown- Set this up so it will fire when you want to increase the Money Bag capacity
Effects:
 Fire event:Fields= Trigger:Increase Value   
Trigger 6

Trigger Name:Increase Value   | Active:No | Loop:No | Run Immediately:No | Priority:Med
Conditions:
 Timer:Fields= Seconds:5
Effects:
 Activate trigger:Fields= Trigger:Activate Warning
 Activate trigger:Fields= Trigger:Activate Full
 Disable trigger:Fields= Trigger:Activate Warning 2
 Disable trigger:Fields= Trigger:Activate Full 2
Trigger 7

Trigger Name:  | Active:Yes | Loop:Yes | Run Immediately:No | Priority:Med
Conditions:
 Player resource count:Fields= Player:1 | Resource:Coin | Operator:== |Number:500
 Timer:Fields= Seconds:60
Effects:
 Fire event:Fields= Trigger:Warning
Trigger 8

Trigger Name:Activate Full 2 | Active:Yes | Loop:Yes | Run Immediately:No | Priority:Med
Conditions:
 Player resource count:Fields= Player:1 | Resource:Coin | Operator:> |Number:500
 Timer:Fields= Seconds:1
Effects:
 Fire event:Fields= Trigger:Full

Understanding The Triggers: Now recreating these triggers should not be hard, but if you have never done triggers then you would have no idea what each trigger is doing and how to customize it to your liking. So we will go through each effect and condition and what they do. Conditions Used:

The Timer Condition was the one of 2 conditions used in this group of Triggers, this is very simply as it has only one Field, This Condition wait for a certain time before activating its effects. It contains the followings Fields | Seconds: In this field you put how many seconds you want before the condition activates the effects.

The Player resource count Condition was the one of 2 conditions used in this group of Triggers, It will check to see if the selected resource is Equal to(==), greater Then(>), Less Then(<) or Equal to or Greater Then(=>), Equal to or Less Then(=<) to the select amount, Depending on which one is selected. so for example if you recourse is Coin and the Operation is Equal to(==) and the Amount is 200 then it will activate the effects when the selected player has exactly 200coin

Effects Used:

The Fire event Effect was one of the five effects used in this group of Triggers, It has one Field. This Effect will Activate a Trigger that is Inactivate. It contains the followings Fields | Trigger: In this field from the scroll down list select the trigger you wish to activate.

The Send chat to player Effect was one of the five effects used in this group of Triggers, This will send a what ever text is in the message field to the selected player.

The Tribute Effect was one of the five effects used in this group of Triggers,This Send a the selected amount of the selected Resource from the Selected player to the Selected Player. So for example if i have the resource as gold and the amount as 100 and the from player as player 1 and the to player as player 2 then player 1 will send 100 gold to player 2 so player 1 loses 100 gold and player 2 gains 100 gold.

The Activate trigger Effect was one of the five effects used in this group of Triggers, Simply Activates the selected Trigger

The Disable trigger Effect was one of the five effects used in this group of Triggers,Simply Deactivates the selected Trigger

So, what is happening all together is, Every 60 seconds The Activate Warning trigger checks If Player 1 has 200 Coin and it if he does it activates the Warning Trigger which sends a message telling the player there bag is full. Now the Activate Full trigger checks if Player 1 has more then 200 Coin and if so it activates the Full Trigger which takes gold away from Player 1 until they have only 200 Coin.

You have to set this up the Unknown Trigger Condtition so it will fire when you want the capacity of the bag to Increase, Then this will fire the Increase Value. The Increase Value Trigger will then Disable the Activate Warning & Activate Full Triggers and activates the Activate Warning 2 & Activate Full 2 Trigger which do the same thing as the first ones but with 500 gold instead of 200.


Customization: Now that you understand how the Effects And Conditions work you can now customize the Money Bag carry capacity to your liking and change the player the has one. All you have to do is change the fields With "Player 1" to a different player and now it works with a different player and to change the first carry capacity to something else change all the fields with "200" in them to what ever you like and to change the amount once upgraded change the field in triggers 7-8 that have 500 in them to what ever you like. Simply and now you can have what ever values you like. Now say you want to upgrade the Carry capacity again then just copy triggers 5-8 again and change them so they disable triggers 7-8 instead of 1,3 and activate the new triggers 11-12. Here is the example

Trigger 9

Trigger Name:Unknown | Active:Yes | Loop:No | Run Immediately:No | Priority:Med
Conditions:
 Unknown- Set this up so it will fire when you want to increase the Money Bag capacity again
Effects:
 Fire event:Fields= Trigger:Increase Value 2   
Trigger 10

Trigger Name:Increase Value 2  | Active:No | Loop:No | Run Immediately:No | Priority:Med
Conditions:
 Timer:Fields= Seconds:5
Effects:
 Activate trigger:Fields= Trigger:Activate Warning 2
 Activate trigger:Fields= Trigger:Activate Full 2
 Disable trigger:Fields= Trigger:Activate Warning 3
 Disable trigger:Fields= Trigger:Activate Full 3
Trigger 11

Trigger Name:Activate Warning 3  | Active:Yes | Loop:Yes | Run Immediately:No | Priority:Med
Conditions:
 Player resource count:Fields= Player:1 | Resource:Coin | Operator:== |Number:800
 Timer:Fields= Seconds:60
Effects:
 Fire event:Fields= Trigger:Warning
Trigger 12

Trigger Name:Activate Full 3 | Active:Yes | Loop:Yes | Run Immediately:No | Priority:Med
Conditions:
 Player resource count:Fields= Player:1 | Resource:Coin | Operator:> |Number:800
 Timer:Fields= Seconds:1
Effects:
 Fire event:Fields= Trigger:Full

And you could repeat that as many times as you want so you can change the capacity many times.

Conclusion: Now you can create a Money Bag inventory with triggers and customize it to your liking. If you still do not understand read thought this article again and you should get it as long as you read carefully, so good luck and I hope this help you.

Notes: This is done with basic triggers and effects but it takes many, it can also be done using custom effects and conditions much quicker.


This Article is part of the Triggers for Beginners Guide Series, for other great and helpful articles click Here