Hello everybody
I made this thing and it works in a sense, as in it does what its supposed to, but what bothers me is that everytime i press the "buy" button, the screen freezes for about 0.2 - 0.5 seconds, which in itself is not a big deal but considering it could happen a couple thousand times in a session if played through and maybe with a couple probable respecs.
What it should essentially do:
Hero has 10 Lumber and a "Learn" tome costs 1 Lumber
Hero buys "Learn Fire Javelin" -> trigger is checked -> Fire Javelin (Ability) is then added to the hero if he doesnt have it, and it is increased in level if he does have it
In itself i dont feel like it should be an issue?
I have about 10 spells applied this way at the moment, could that be a problem as i expect about 200+ spells when im done?
I made this thing and it works in a sense, as in it does what its supposed to, but what bothers me is that everytime i press the "buy" button, the screen freezes for about 0.2 - 0.5 seconds, which in itself is not a big deal but considering it could happen a couple thousand times in a session if played through and maybe with a couple probable respecs.
What it should essentially do:
Hero has 10 Lumber and a "Learn" tome costs 1 Lumber
Hero buys "Learn Fire Javelin" -> trigger is checked -> Fire Javelin (Ability) is then added to the hero if he doesnt have it, and it is increased in level if he does have it
In itself i dont feel like it should be an issue?
I have about 10 spells applied this way at the moment, could that be a problem as i expect about 200+ spells when im done?
-
Learn Fire Javelin
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Learn Fire Javelin
-
((Hero manipulating item) is A Hero) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Fire Javelin for (Hero manipulating item)) Greater than or equal to 1
-
(Level of Fire Javelin for (Hero manipulating item)) Less than 100
-
-
Then - Actions
-
Unit - Increase level of Fire Javelin for (Hero manipulating item)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Fire Javelin for (Hero manipulating item)) Equal to 100
-
-
Then - Actions
-
Player - Add 1 to (Triggering player).Current lumber
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Fire Javelin for (Hero manipulating item)) Less than 1
-
-
Then - Actions
-
Unit - Add Fire Javelin to (Hero manipulating item)
-
-
Else - Actions
-
-
-
-
-
-
-