# Trigger Question (integer problem)

#### Avaleirra

##### Is back. Probably.
Hi I have an ability that adds "charges". Charges are shown through another spell. When I cast the ability that adds charges nothing happens to the Charges ability.

Here is my trigger:

Trigger:
• Cut Tree
• Events
• Unit - A unit Starts the effect of an ability
• Conditions
• (Ability being cast) Equal to Cut Tree
• Actions
• Set GS_CT_Charges = (GS_CT_Charges + 1)
• Unit - Set level of Charges (steamsaw) for (Triggering unit) to GS_CT_Charges

#### Shura

##### New Member
The trigger would work just fine, the problem lies somewhere else. We can't really give an answer without some more information, but you should go check to confirm that the ability has enough levels, and that each level has a different tooltip and things like that.

#### Laiev

##### Hey Listen!!
or ever if the unit got the ability o.o'

#### Avaleirra

##### Is back. Probably.
@Laiev
yes the triggering unit has the ability

@Shura
tooltips are right, there are 26 levels...

I have another trigger looking like this

Trigger:
• Events
• A unit enters (playable map area)
• Conditions
• Unit Type of (triggering unit) equal to Goblin Shredder
• Actions
• Set level of Charges(steamsaw) to 1 for triggering unit
• Set GS_ST_Charges = 0

#### Shura

##### New Member
Why not just upload the map?

#### Avaleirra

##### Is back. Probably.
@Shura
a) because it is huge
b) because I am on my iPod

if you're really keen though I can send it to you tomorrow

And btw cut tree is based on eat tree if that matters at all

#### HydraRancher

##### Truth begins in lies
I don't understand your triggers, they seem to work like:

Goblin Enters.
Sets Charges to 1
Sets Level of Charge Ability to 0

Next Trigger

Adds 1 charge to make charges 2
Set Charge Ability to Charges (2)

You've skipped level 1.

Have you tried casting the ability loads of times?

#### Laiev

##### Hey Listen!!
Sets Level of Charge Ability to 0?
:nuts:

#### Avaleirra

##### Is back. Probably.
I have tried casting loads of times. And I think I set it to one...not 0

#### IronTrout

##### New Member
What is the variable Steamsaw set to?

Edit: NVM!! I get it lol.

Is it necessary to keep the variables in an ability?

#### Avaleirra

##### Is back. Probably.
@IronTrout
Well, no. The other way would be to have floating text hanging above him but I don't know how I would do some of that.

#### IronTrout

##### New Member
Oh so its just used as a way to show the player how many charges he/she has. Well if thats the case, do something along the lines of:

Trigger:
• EatTree Learn
• Events
• Unit - A unit Learns a skill
• Conditions
• (Learned Hero Skill) Equal to Eat Tree
• Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• (Level of Eat Tree for (Triggering unit)) Equal to 1
• Then - Actions
• Set Caster = (Triggering unit)
• Set Charges = 0
• Else - Actions
• Do nothing

Trigger:
• EatTree Work
• Events
• Unit - A unit Starts the effect of an ability
• Conditions
• (Ability being cast) Equal to Eat Tree
• Actions
• Set Charges = (Charges + 1)
• Unit - Set level of Charges (Ability) for Caster to (Charges + 1)

All done It seems to work fine.

Also: The ability charges, i made it charges + 1 because when you have 0 charges it still shows it as 1 charge. so i made the ability 11 levels; level 1 = 0 charges. level 2 = 1 charge etc.

#### Avaleirra

##### Is back. Probably.
@IronTrout
Lol, it's ok I found the problem

There was a delay time in cut tree and that was messing it up.

#### IronTrout

##### New Member
ah lol. Oh wells

General chit-chat
Help Users
• No one is chatting at the moment.
• The Helper:
I was hoping you were going to say you wanted to be a cook and wished to open up a Food Truck there are so many opportunities for that here
• The Helper:
you can only open the bar if you sell food and a food truck in the parking lot counts
• The Helper:
here in houston
• The Helper:
most bars are struggling to build food prep and even some I know are doing there own food trucks
• The Helper:
but yeah man you should come to Houston there is so much more opportunity here than San Antonio. Just look at all the homeless people on the Riverwalk and downtown there you cannot even walk down the street without getting mobbed them
• The Helper:
check out this place apparently it is the best roommate site out there roommates.com lol
• Varine:
The homeless people reminded me of New York
• Varine:
I'll check it out, my lease expires in like a few months so I need to figure something out.
• Varine:
I tried to open a food truck in Sandpoint a few years ago but the city said no, then like two years later they passed new laws to encourage it and gave them all fucking tax breaks and shit. And at that point I didn't have enough money to go buy one so I was way too late to the game once other cities realized they could just bring their existing truck there, or sell their brick and mortar.
• Varine:
I do like food trucks though, they're way more fun than restaurants and usually I also get some of that tip money there.
• Varine:
Restaurants are really hard if you don't have a back up source of income to fund them sometimes, in my experience most owners either got really really lucky, had existing money that allowed them to buy an already successful one, or they have family money to fall back on for loans. It's few and far between to see very inspiring success stories where the person actually got it through hard work and perseverance. I thought about opening one lots and I always just end up not thinking it'll work. I would much rather just find someone that has that money and go work for them
• The Helper:
i am not talking about opening a brick and mortar I am talking about food trucks though I have seen some brick and mortar mexican places open up during covid that are doing good because there food is awesome!
• The Helper:
Food trucks are killing out here because Bars cannot open unless they sell food and the governor ok'd the use of a food truck in front as serving food
• The Helper:
Just not enough food trucks
• The Helper:
a buddy of mine just opened up a food truck and he is killing it but he is a great cook and has awesome food right in the middle of the pandemic too food trucks are immune to pandemic because they are take out in Texas you will always be able to get take out or delivery
• The Helper:
He is in the different food facebook groups in houston and posts videos of him making his food
• The Helper:
he is killing it
• jonas:
@Varine with the restaurants, there surely is a lot of luck and hard work but most restaurants fail because they suck. Flair isn't right, economics not well thought through, food is mediocre or sucks, location is bad, etc. If you're thinking about opening one, make sure you're looking at the stories of those that would be playing at your level, don't let your hopes be dragged down by all the subpar restaurants out there.
• jonas:
I'm a bit worried about the future of data science, there's an influx of incompetent people hired by incompetent managers, that can't last. But I'm sure smart data scientists will always be useful and hireable. Same as smart security people.
• jonas:
My sister in law worked in a vegan food truck, the owners were also making a killing, added several trucks and opened two restaurants over 5 years
• Ghan:
The CompTIA stuff is pretty much crap unfortunately. The places that ask for those low-level certs aren't likely places you want to work. For IT you really want a degree, but in the meantime you need to figure out some way to learn the skills. Cybersecurity is really hot right now so competition is fierce.
• tom_mai78101:
I realized I don't have anything much to say, other than "Good luck!". Compared to other places, I'm just very lucky we didn't have a lot of surges of cases coming in.
• The Helper:
My daughter just got back from school at Georgetown TX, outside of Austin and said there were 100 cases in the last week but she also said nobody was wearing a mask anywhere so people mask up and stay safe!
+2
• thewrongvine:
happy thanksgiving folks!
+1