Help with Ammo System

psychophat

New Member
Reaction score
0
Is there a way to have different ammo system per hero/class. The ammo system used is the one that uses lumber as magazine and gold as rounds.

eg.
hero1(sniper) 1 lumber = 10 rounds
hero2(gunner) 1 lumber = 100 rounds
hero3(scout) 1 lumber = 30 rounds
etc.

Is this possible using the Ammo System by Duderock101
 

ZiggyMcjoney

Data editor?! AAAHHHHH!
Reaction score
95
Is there a way to have different ammo system per hero/class. The ammo system used is the one that uses lumber as magazine and gold as rounds.

eg.
hero1(sniper) 1 lumber = 10 rounds
hero2(gunner) 1 lumber = 100 rounds
hero3(scout) 1 lumber = 30 rounds
etc.

Is this possible using the Ammo System by Duderock101

Yeah, it is. Add an If/Then/Else at the start of the trigger, then have a variable called "Temp_Integer" or something along those lines. In that If/Then/Else:

Code:
If/Then/Else
If: Unit-Type of (Attacking unit) Equal to Scout
Then: Set Temp_Integer = 10
Else: If: Unit-Type of (Attacking unit) Equal to Gunner
     Then: Set Temp_Integer = 100
     Else: etc etc, for all of your classes

Get it? :p

And then, when you do the trigger to subtract the gold, instead of subtracting 1, you subtract "Temp_Integer".

Hope that helped, ask any questions if you need to :p.
 

psychophat

New Member
Reaction score
0
OMG it works +rep . . . correct me on this, the last entry on the IF/THEN/ELSE is do nothing, right?

And could you help with this, I don't know where to change the value for it. Is there a way for a custom item that is on the ground not to be destroyed when it is attacked?

Disabled perishable but still it gets destroyed when attacked.
 

YourFace

<span style="color:#9C9C9C;"><strong>Runner Up - T
Reaction score
91
the action do nothing has no value in this trigger at all, it simply takes up space
so if you remove it, you'd get the same result, and you might prevent errors that come from

Unit is issued an order to attack an item
order trig unit to stop?
 

psychophat

New Member
Reaction score
0
the action do nothing has no value in this trigger at all, it simply takes up space
so if you remove it, you'd get the same result, and you might prevent errors that come from

Unit is issued an order to attack an item
order trig unit to stop?

There is no order to attack an item in the system, do you mean that I should add lines that if a unit attacks an item unit attacking stops?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top