Hello, so I've been away from editing for a few months and i came back and a very simple trigger i had now does not work and i am unsure why.
Event: unit gains a level
Action: owning player gains 1 custom resource
the issue is in the event. no matter what the event wont fire when a unit gains a level. this trigger worked a few months ago and i have just been hitting my head against a wall because its so simple i cant seem to figure out why it does not work anymore. any help would be much appreciated.
there are no variables and no conditions. and it does not matter what i put into the actions nothing happens. even in the trigger debug window it does not run and fail a condition it acts like the event never takes place. which is why i suspect its somewhere in the event part of the trigger. this trigger worked 5-6 months ago when i originally added it to my map and haven't noticed any issues for several months after that. it only seemed to have issue when i started working on my map again just this month. so maybe something in a patch broke it idk. maybe something got changed that you need to set something up so that the trigger recognizes that a unit has the ability to level up (beyond just giving it veterancy).
I figured it out apparently the trigger cannot pick up the change between level 0 and 1 but it will work for all other levels ie 1-2, 2-3, 3-4 ect.
so all i needed to do was change my veterancy so that my levelable units start at level 1 not level 0.
i knew it was gonna be a simple little thing because the trigger was too simple to have an error like that.
though it makes me wonder why they made it so it cant pick up that level change or if it was unintentional and just got over looked.
this does cause a slight issue with how stats are distributed when a level is gained but im glad i had the foresight to write a simple program to track stats cause i knew i would need to change them later for balance.
TY everyone for your help. just having a place to voice my problem helped to change how i tackled the issue.
i thought of a work around almost imediately after i found the issue but im glad i didnt have to use it cause it would have added a lot of unnessisary trigger usage.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, so I've been away from editing for a few months and i came back and a very simple trigger i had now does not work and i am unsure why.
Event: unit gains a level Action: owning player gains 1 custom resource
the issue is in the event. no matter what the event wont fire when a unit gains a level. this trigger worked a few months ago and i have just been hitting my head against a wall because its so simple i cant seem to figure out why it does not work anymore. any help would be much appreciated.
Could you please post the exact trigger? kthx
If you want to see the trigger its self i have it attached. i can't post it online at this time.
Events: TriggerAddEventUnitGainLevel(Null)
Local Variables:
Conditions:
Actions: PlayerModifyPropertyInt((EventPlayer()), c_playerPropCustom, c_playerPropOperAdd, 1)
there are no variables and no conditions. and it does not matter what i put into the actions nothing happens. even in the trigger debug window it does not run and fail a condition it acts like the event never takes place. which is why i suspect its somewhere in the event part of the trigger. this trigger worked 5-6 months ago when i originally added it to my map and haven't noticed any issues for several months after that. it only seemed to have issue when i started working on my map again just this month. so maybe something in a patch broke it idk. maybe something got changed that you need to set something up so that the trigger recognizes that a unit has the ability to level up (beyond just giving it veterancy).
I figured it out apparently the trigger cannot pick up the change between level 0 and 1 but it will work for all other levels ie 1-2, 2-3, 3-4 ect. so all i needed to do was change my veterancy so that my levelable units start at level 1 not level 0. i knew it was gonna be a simple little thing because the trigger was too simple to have an error like that. though it makes me wonder why they made it so it cant pick up that level change or if it was unintentional and just got over looked. this does cause a slight issue with how stats are distributed when a level is gained but im glad i had the foresight to write a simple program to track stats cause i knew i would need to change them later for balance. TY everyone for your help. just having a place to voice my problem helped to change how i tackled the issue. i thought of a work around almost imediately after i found the issue but im glad i didnt have to use it cause it would have added a lot of unnessisary trigger usage.