All language subtitles for 24. Making the Upgrade Functional

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian Download
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,256 --> 00:00:04,608 Our single upgrade that we have in the game does not yet have any effect 2 00:00:05,376 --> 00:00:06,912 So let's go ahead and make it work 3 00:00:07,168 --> 00:00:13,056 So I'm going to make it work well recall that we have the sword ability controller which you can go out in open 4 00:00:13,312 --> 00:00:14,848 An assault ability controller 5 00:00:15,360 --> 00:00:17,664 Sponsor sword on a specific into 6 00:00:18,944 --> 00:00:22,016 We want to be able to control or reduce that interview 7 00:00:22,272 --> 00:00:23,296 Beeston 8 00:00:23,552 --> 00:00:25,088 An upgrade being chosen 9 00:00:25,344 --> 00:00:28,928 So what are we going to do about that well what we can do 10 00:00:29,952 --> 00:00:30,720 We can 11 00:00:30,976 --> 00:00:32,000 Create a 12 00:00:32,256 --> 00:00:33,024 Game 13 00:00:33,536 --> 00:00:35,072 In our game events Singleton 14 00:00:35,328 --> 00:00:36,096 That will 15 00:00:36,352 --> 00:00:38,912 Notify any listeners when 16 00:00:39,424 --> 00:00:39,936 The 17 00:00:40,192 --> 00:00:41,216 Current up 18 00:00:41,472 --> 00:00:42,496 It's have been up to 19 00:00:43,008 --> 00:00:44,544 And then along with that event 20 00:00:44,800 --> 00:00:45,824 We can pass 21 00:00:46,080 --> 00:00:48,384 The Resource that was added as well 22 00:00:48,640 --> 00:00:49,408 What's the current 23 00:00:50,176 --> 00:00:51,200 Dad's going to 24 00:00:51,456 --> 00:00:53,248 As well as the credit upgrades 25 00:00:53,760 --> 00:00:56,320 That's going to be a lot clearer as we get into it 26 00:00:56,576 --> 00:01:00,525 So let's go in open up our game events autoload 27 00:01:00,527 --> 00:01:02,875 Subtitled by online-courses.club We compress knowledge for you! 28 00:01:02,876 --> 00:01:04,000 And then let's go here and open up the screen 29 00:01:04,256 --> 00:01:05,536 And so we got it right here 30 00:01:05,792 --> 00:01:07,328 Let's create a new Sid 31 00:01:08,352 --> 00:01:08,864 Signal 32 00:01:09,376 --> 00:01:10,400 Ability 33 00:01:10,656 --> 00:01:11,424 Upgrade 34 00:01:11,936 --> 00:01:12,448 Update 35 00:01:13,984 --> 00:01:16,544 Let's do this let's you ability upgrade 36 00:01:16,800 --> 00:01:17,312 Added 37 00:01:17,568 --> 00:01:19,616 So we're going to call it a building upgrade 38 00:01:20,128 --> 00:01:22,944 We're going to call the first parameter upgrade 39 00:01:23,200 --> 00:01:24,992 Which is of type of building upgrade 40 00:01:25,248 --> 00:01:29,600 And then were going to add a second parameter which is current upgrades and running cold 41 00:01:30,112 --> 00:01:31,136 Dictionary 42 00:01:31,648 --> 00:01:36,000 So that will be representative of our current upgrades for more upgrade 43 00:01:36,256 --> 00:01:36,768 Manager 44 00:01:37,536 --> 00:01:38,816 Let's create a new funk 45 00:01:39,072 --> 00:01:40,096 Bank in May 46 00:01:40,352 --> 00:01:41,888 Ability upgrades 47 00:01:42,400 --> 00:01:44,448 Added and we're going to copy and 48 00:01:44,704 --> 00:01:47,008 Please to these parameters because they'll be exactly the same 49 00:01:47,264 --> 00:01:48,544 And at the end 50 00:01:48,800 --> 00:01:51,104 And were simply just going to do ability 51 00:01:51,360 --> 00:01:52,640 Upgrade added.in 52 00:01:53,152 --> 00:01:53,920 Upgrade 53 00:01:54,176 --> 00:01:54,688 And then 54 00:01:56,480 --> 00:02:00,576 That looks redundant it is but that's because we're essentially doing a real 55 00:02:01,088 --> 00:02:05,952 For sending data up and then through the game so up to the game events or load and then down to Earth 56 00:02:06,720 --> 00:02:08,512 So let's go ahead and 57 00:02:08,768 --> 00:02:10,816 Open up our upgrade manager 58 00:02:13,376 --> 00:02:16,192 And in our apply upgrade function 59 00:02:16,448 --> 00:02:18,496 For keeping track of the current upgrades 60 00:02:18,752 --> 00:02:20,032 And also have a rash 61 00:02:20,288 --> 00:02:21,824 Cancel the upgrade so what we're going to do in here 62 00:02:22,080 --> 00:02:24,896 Is outside of any of these blocks 63 00:02:25,152 --> 00:02:26,944 We're going to say game 64 00:02:27,200 --> 00:02:28,224 Start in May 65 00:02:28,480 --> 00:02:30,272 Ability upgrades added 66 00:02:30,528 --> 00:02:32,832 Just Dad functions that we just added to 67 00:02:34,112 --> 00:02:37,184 And we're going to pass in the upgrade as well 68 00:02:37,440 --> 00:02:37,952 The current 69 00:02:40,256 --> 00:02:43,072 So now we're going to hell that we can go to what sort of bills 70 00:02:43,328 --> 00:02:43,840 Controller 71 00:02:44,096 --> 00:02:45,632 And open up that script 72 00:02:45,888 --> 00:02:49,728 And then in already method what we can do as we can say a game event 73 00:02:49,984 --> 00:02:50,496 Dart 74 00:02:50,752 --> 00:02:52,288 Ability upgrades 75 00:02:52,544 --> 00:02:53,312 Dr No 76 00:02:53,824 --> 00:02:56,384 To write on ability upgrade 77 00:02:59,200 --> 00:03:00,480 And then 78 00:03:00,736 --> 00:03:02,016 Let's create a new function to buy 79 00:03:02,272 --> 00:03:02,784 Song 80 00:03:03,040 --> 00:03:04,320 On mobility 81 00:03:04,576 --> 00:03:05,088 Upgrade 82 00:03:06,368 --> 00:03:09,696 And then we have the upgrade coming in which is up type ability up 83 00:03:10,208 --> 00:03:11,744 And we also have the current 84 00:03:12,000 --> 00:03:12,512 Grades 85 00:03:12,768 --> 00:03:13,536 Coming in 86 00:03:13,792 --> 00:03:14,304 Dictionary 87 00:03:15,328 --> 00:03:17,120 And this is where we're going to want to 88 00:03:17,376 --> 00:03:18,400 Recalculate 89 00:03:18,912 --> 00:03:19,424 The 90 00:03:19,680 --> 00:03:23,520 Time is wait time so there's a couple of setup we need to do hear something 91 00:03:23,776 --> 00:03:25,824 Pass rate here just to make this 92 00:03:26,336 --> 00:03:27,872 Not error out right now 93 00:03:28,128 --> 00:03:29,408 When I go to my 94 00:03:29,920 --> 00:03:31,712 Seen over here it's like the timer 95 00:03:31,968 --> 00:03:34,784 So over here we have a wait time of 1.5 96 00:03:35,296 --> 00:03:39,136 In if I upgrade is going to reduce the wait time by 10% every time 97 00:03:39,648 --> 00:03:42,464 We need to store what a base weight 98 00:03:43,232 --> 00:03:45,024 So let's create a new variable 99 00:03:45,280 --> 00:03:48,608 And I'm going to put a line between the stair with variable and export 100 00:03:49,120 --> 00:03:50,144 Create a new variable 101 00:03:50,400 --> 00:03:50,912 Call 102 00:03:51,424 --> 00:03:52,192 Default 103 00:03:52,448 --> 00:03:52,960 Wait 104 00:03:53,216 --> 00:03:55,264 Time or electronic bass wait time 105 00:03:56,544 --> 00:04:01,408 Then I'm ready let's go ahead in a sign that bass wait time and when I do it up here first 106 00:04:01,664 --> 00:04:03,200 Raceway time is it good to 107 00:04:03,456 --> 00:04:04,992 Timer 108 00:04:05,760 --> 00:04:07,552 So restoring that bass wait time 109 00:04:09,088 --> 00:04:12,416 Ok so now down your own ability upgrade ad and how are we going to do 110 00:04:12,672 --> 00:04:16,512 As well firstly were going to say if upgrade ID 111 00:04:17,024 --> 00:04:18,559 Is not equal to 112 00:04:19,327 --> 00:04:20,095 Sword 113 00:04:20,351 --> 00:04:24,959 Wait remember this is our ID so we can double check this by going to a file system 114 00:04:25,215 --> 00:04:25,727 Resource 115 00:04:25,983 --> 00:04:26,495 Does upgrade 116 00:04:27,007 --> 00:04:27,519 And then 117 00:04:27,775 --> 00:04:29,567 Sword rate.to 118 00:04:30,079 --> 00:04:31,359 This is r i d here 119 00:04:31,871 --> 00:04:34,687 I'm just going to make sure that this is correct by copying and pasting it over here 120 00:04:35,711 --> 00:04:39,039 Sofa upgrade ideas nautical to sword great we're just going over 121 00:04:39,551 --> 00:04:40,063 Ok 122 00:04:40,319 --> 00:04:41,855 This is going to be very important 123 00:04:42,111 --> 00:04:42,623 Because 124 00:04:43,135 --> 00:04:47,743 Essentially saying we're going to ignore any ability upgrades that happen that are not 125 00:04:47,999 --> 00:04:48,767 Related 126 00:04:50,047 --> 00:04:51,583 That means if we add more up 127 00:04:51,839 --> 00:04:52,351 The game 128 00:04:52,607 --> 00:04:56,703 This function is still going to be called because it's just listening for all ability upgrades 129 00:04:57,215 --> 00:05:00,543 What temperature is going to filter out the ones that we don't care about in here 130 00:05:00,799 --> 00:05:05,663 Ok so that means that if we make it past that block then we are dealing with 131 00:05:06,175 --> 00:05:06,943 A type 132 00:05:07,199 --> 00:05:08,479 Of sword rate 133 00:05:08,735 --> 00:05:11,295 So what are we going to do we're going to calculate a new weight 134 00:05:11,807 --> 00:05:12,831 And what we're going to say is 135 00:05:13,087 --> 00:05:14,367 Bar percent 136 00:05:14,623 --> 00:05:15,647 Reduction 137 00:05:15,903 --> 00:05:16,927 Is equal to 138 00:05:17,183 --> 00:05:19,487 We're going to take the current upgrades 139 00:05:19,743 --> 00:05:22,303 And remember we can index it bye 140 00:05:22,559 --> 00:05:25,119 The sword underscore rate so that I die 141 00:05:25,631 --> 00:05:26,911 And then we're going to grab 142 00:05:27,167 --> 00:05:28,447 The quantity 143 00:05:28,959 --> 00:05:29,727 Ok so that's 144 00:05:29,983 --> 00:05:32,543 How much how many of these upgrades we have 145 00:05:32,799 --> 00:05:34,847 And we're going to multiply this by 146 00:05:35,103 --> 00:05:36,895 10% of .1 147 00:05:37,919 --> 00:05:39,967 So what this is going to do is this is going to tell us 148 00:05:40,223 --> 00:05:41,759 Check the number of Sword of the 149 00:05:42,271 --> 00:05:43,807 X 0.1 150 00:05:44,063 --> 00:05:45,855 Sophie of two little by twenty percent 151 00:05:46,111 --> 00:05:47,135 Three 30% 152 00:05:47,903 --> 00:05:50,463 Then all we need to do is we need to take the timer 153 00:05:50,719 --> 00:05:52,511 And I need to set it wait time 154 00:05:53,023 --> 00:05:54,047 Equal to 155 00:05:54,303 --> 00:05:55,583 The bass wait time 156 00:05:56,095 --> 00:05:56,607 X 157 00:05:56,863 --> 00:05:57,631 And then we have to do 158 00:05:57,887 --> 00:05:58,399 1 159 00:05:58,911 --> 00:05:59,679 Miners 160 00:05:59,935 --> 00:06:00,447 The process 161 00:06:02,751 --> 00:06:05,311 And so if I percent reduction is 162 00:06:05,823 --> 00:06:06,591 .1 163 00:06:06,847 --> 00:06:10,431 That will evaluate to 90% and were basically saying 164 00:06:10,687 --> 00:06:12,991 We're doing 90% of the base weight 165 00:06:13,247 --> 00:06:15,039 Time is going to be the new wait time 166 00:06:15,295 --> 00:06:15,807 Ok 167 00:06:16,063 --> 00:06:17,855 So that's our timer now 168 00:06:18,111 --> 00:06:21,951 Since our timer is continually running it never stop 169 00:06:22,207 --> 00:06:23,999 And that is because we have one sure 170 00:06:24,255 --> 00:06:24,767 Off 171 00:06:25,023 --> 00:06:26,047 So one shot me 172 00:06:26,303 --> 00:06:28,607 Should the timer just run once and then stop 173 00:06:29,119 --> 00:06:29,887 If it's on 174 00:06:30,143 --> 00:06:32,447 So that means there's a timer 175 00:06:32,959 --> 00:06:34,239 Running over and over and over 176 00:06:34,751 --> 00:06:35,519 Because of that 177 00:06:35,775 --> 00:06:38,335 We cannot just change the wait time and expected to work 178 00:06:38,591 --> 00:06:41,151 We actually need to call timer that start 179 00:06:41,663 --> 00:06:42,175 Again 180 00:06:42,687 --> 00:06:44,991 So if I search for start in my 181 00:06:45,247 --> 00:06:46,015 F1 182 00:06:46,271 --> 00:06:48,063 Dr documentation menu 183 00:06:48,319 --> 00:06:50,879 I can scroll down until I find 184 00:06:51,135 --> 00:06:52,159 Set a timer 185 00:06:52,671 --> 00:06:53,439 I can opener 186 00:06:53,695 --> 00:06:55,231 And it says right here 187 00:06:55,487 --> 00:06:58,303 It also reset the remaining time to wait time 188 00:06:58,815 --> 00:07:01,119 So start the centrally restart the timer 189 00:07:01,375 --> 00:07:02,911 Using the new wait time 190 00:07:03,167 --> 00:07:03,679 We can figure 191 00:07:03,935 --> 00:07:07,263 Alright and just to be certain that this is working let's go ahead and print 192 00:07:07,775 --> 00:07:09,055 Time adult wait time 193 00:07:10,079 --> 00:07:11,615 And also we can 194 00:07:11,871 --> 00:07:14,431 Drastically increase this percent reduction 195 00:07:14,943 --> 00:07:19,551 So just temporarily what I'm going to do is instead of this being 0.1 I'm going to make it point 196 00:07:20,575 --> 00:07:23,647 Ok let's Run the game and see if that upgrade actually works 197 00:07:23,903 --> 00:07:24,415 Ok 198 00:07:24,671 --> 00:07:27,231 So I've got my sword I'm going to shrink this window 199 00:07:27,487 --> 00:07:28,255 When I click that 200 00:07:28,511 --> 00:07:31,327 You can see that my sword is now attacking much fat 201 00:07:32,863 --> 00:07:35,167 And if I collect some upgrades again 202 00:07:35,423 --> 00:07:37,215 It should be sworn in even faster 203 00:07:37,471 --> 00:07:39,263 Ok so that's working great 204 00:07:39,519 --> 00:07:43,359 I'm going to remove this print statement from the sort of building control 205 00:07:43,871 --> 00:07:45,663 And I'm going to send this back to .1 206 00:07:45,919 --> 00:07:48,735 And that is our first ability upgrade 207 00:07:48,991 --> 00:07:49,759 Implement 13501

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.