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.

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 19 times
Stratego (dev)
Site Admin
 
Posts: 6533
Joined: Fri Apr 25, 2014 9:28 pm

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

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

ah how do you open it?
Protecting Peace, protecting Justice! Hounds of justice!!
User avatar
Belfry777
 
Posts: 1357
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

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
COOLguy
 
Posts: 3788
Joined: Sat Jul 12, 2014 2:58 am
Location: Nenuial, Arnor

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

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

So how do you add bonuslist?
Protecting Peace, protecting Justice! Hounds of justice!!
User avatar
Belfry777
 
Posts: 1357
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.
Protecting Peace, protecting Justice! Hounds of justice!!
User avatar
Belfry777
 
Posts: 1357
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

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
Stratego (dev)
Site Admin
 
Posts: 6533
Joined: Fri Apr 25, 2014 9:28 pm

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
Protecting Peace, protecting Justice! Hounds of justice!!
User avatar
Belfry777
 
Posts: 1357
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

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?
Stratego (dev)
Site Admin
 
Posts: 6533
Joined: Fri Apr 25, 2014 9:28 pm

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?
Protecting Peace, protecting Justice! Hounds of justice!!
User avatar
Belfry777
 
Posts: 1357
Joined: Tue Oct 17, 2017 2:34 am
Location: AZ

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 :) :) )
Stratego (dev)
Site Admin
 
Posts: 6533
Joined: Fri Apr 25, 2014 9:28 pm


Return to Under the Hood studies

Who is online

Users browsing this forum: No registered users and 1 guest