Belfry777 - unit json 1(edit and bonuslist)

Here i will list the apprentices and their learning tasks, so others also can follow how it goes.
Please DONT POST HERE any solutions on the given task earlier than the apprentice, you can ask questions from him tough.
Stratego (dev)
Site Admin
Posts: 6598
Joined: Fri Apr 25, 2014 9:28 pm

Belfry777 - unit json 1(edit and bonuslist)

Postby Stratego (dev) » Thu Dec 28, 2017 11:33 pm

Here is your first lecture: here is a aow unit json, change it to have
- change to 12 attack power,
- and +100% bonus agsainst aircraft carriers
- and +200% bonus agsainst battleships
- and +200% bonus against heavy tanks
Attachments
unit_ger_inf_mortar.json
(3.58 KiB) Downloaded 20 times

User avatar
Belfry777
Posts: 1402
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Belfry777 » Wed Jan 31, 2018 1:28 am

ah how do you open it?
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

User avatar
COOLguy
Posts: 3839
Joined: Sat Jul 12, 2014 2:58 am
Location: Nenuial, Arnor

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby COOLguy » Wed Jan 31, 2018 5:36 pm

You can use a simple text editor like Notepad
Thanks!
Josh

User avatar
Belfry777
Posts: 1402
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Belfry777 » Tue Feb 27, 2018 1:48 am

So how do you add bonuslist?
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

User avatar
Belfry777
Posts: 1402
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Belfry777 » Tue Feb 27, 2018 1:50 am

In modifier 1.8? or the one under this one.
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

Stratego (dev)
Site Admin
Posts: 6598
Joined: Fri Apr 25, 2014 9:28 pm

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Stratego (dev) » Tue Feb 27, 2018 5:51 am

the modifier is the bonus value, but checj the samples in faq

User avatar
Belfry777
Posts: 1402
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Belfry777 » Sun May 06, 2018 12:19 am

okay I think I got it all thanks to "ThePussInboots!"
Attachments
unit_ger_inf_mortar.json
(4.18 KiB) Downloaded 5 times
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

Stratego (dev)
Site Admin
Posts: 6598
Joined: Fri Apr 25, 2014 9:28 pm

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Stratego (dev) » Mon May 07, 2018 8:44 pm

it seems correct but ther indentation waís ruined. what editor have u used?

User avatar
Belfry777
Posts: 1402
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Belfry777 » Mon May 07, 2018 10:50 pm

I have used Gene which is a simple text editor. What went wrong?
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.

Stratego (dev)
Site Admin
Posts: 6598
Joined: Fri Apr 25, 2014 9:28 pm

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Stratego (dev) » Tue May 08, 2018 5:34 am

all one lined bonuses got expanded to multiline.
gene is not texteditor but json editor. dont use it with aow/aof/aos. use textpad on pc or totalcommander on phone.
(however in any new alternatives - where i dont need to edit jsons :) you can use genie so u can get "uglyfied" appearance of json structure :) :) )

User avatar
Belfry777
Posts: 1402
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

Re: Belfry777 - unit json 1(edit and bonuslist)

Postby Belfry777 » Sat Jun 02, 2018 10:16 pm

Dose it now work?
Attachments
unit_ger_inf_mortar.json
(4.18 KiB) Downloaded 1 time
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.


Return to “Under the Hood studies”