Warning: Somewhat technical post
During the writing of various event I always found myself writing if but till now I never had a if else.
I simulated the ifelse using the Switch event step like this:
<Switch Expression="[Trainee.Mind.Purity.Slut]">
<Case Value="true">
<SomeEventStep/>
</Case>
<Case Value="false">
<SomeEventStep/>
</Case>
</Switch>
It does work but it feels strange to me using a switch for doing so.
So I finally decided to add a IfElse.
The previous example became:
<IfElse Expression="[Trainee.Mind.Purity.Slut]">
<Composite>
<SomeEventStep/>
</Composite>
<Composite>
<SomeEventStep/>
</Composite>
</Switch>
Unfortunately xml doesn't make it much better then the previous version but at least now you don't have to specify the Value="true".
IfElse must have two child, the use of a <Composite> is only if you have to specify more than one event step.
Using a IfElse kinda feels better than the switch but I'm still evaluating other solution, since this doesn't feel too natural...
Friday, January 15, 2016
Friday, January 8, 2016
Ze bank and game time
As anticipated in the previous post I needed a bank in order to make simplier to buy the home.
The bank is now a new location where you can take a mortgage.
You can get a lot of money that you will have pay in a very long period with monthly payments.
The long period as I write is 20 year.
So, since I doubt someone is going to play for a so long period it's more like an infinite time.
Anyway for this I enanched the AddPeriodicMoneyMovement event step.
Adding an optional duration field.
<AddPeriodicMoneyMovement>
<Id>bank_loan</Id>
<Reason>Bank loan</Reason>
<Amount>-Round(55000 / 200, 0)</Amount>
<Period>Month</Period>
<Duration>200</Duration>
</AddPeriodicMoneyMovement>
Did you catch the mistake?
The duration is 200 months while 20 years should be 240.
Well, it's not a mistake.
The game time is different from the real world one a year is made of 10 months and a months is made of exactly 4 weeks.
Weeks will remain as is for simplicity reason, but maybe I'll change the month number to 12. I have still to see whether it's an advantage to have 10 month years.
The bank is now a new location where you can take a mortgage.
You can get a lot of money that you will have pay in a very long period with monthly payments.
The long period as I write is 20 year.
So, since I doubt someone is going to play for a so long period it's more like an infinite time.
Anyway for this I enanched the AddPeriodicMoneyMovement event step.
Adding an optional duration field.
<AddPeriodicMoneyMovement>
<Id>bank_loan</Id>
<Reason>Bank loan</Reason>
<Amount>-Round(55000 / 200, 0)</Amount>
<Period>Month</Period>
<Duration>200</Duration>
</AddPeriodicMoneyMovement>
Did you catch the mistake?
The duration is 200 months while 20 years should be 240.
Well, it's not a mistake.
The game time is different from the real world one a year is made of 10 months and a months is made of exactly 4 weeks.
Weeks will remain as is for simplicity reason, but maybe I'll change the month number to 12. I have still to see whether it's an advantage to have 10 month years.
Tuesday, January 5, 2016
Ze house
Hi,
I added a event where you can actually buy a house.
This will give you the advantage of a lower monthly expense, instead of paying the rent you will just have to pay a own taxes which is lower then rent.
The house at the moment does not provide anything else.
But the idea behind it is to use it similarly to otherworld (an old and for what I know defunct hentai game) where you can build new room that will unlock new events.
The house though (as a real one) cost money, a lot of money.
So, I'll have to add the bank, which will gladly lend you money as long as you pay them interests...
I added a event where you can actually buy a house.
This will give you the advantage of a lower monthly expense, instead of paying the rent you will just have to pay a own taxes which is lower then rent.
The house at the moment does not provide anything else.
But the idea behind it is to use it similarly to otherworld (an old and for what I know defunct hentai game) where you can build new room that will unlock new events.
The house though (as a real one) cost money, a lot of money.
So, I'll have to add the bank, which will gladly lend you money as long as you pay them interests...
Tuesday, December 29, 2015
Selling slaves
I made a few changes at the event where you sell your slave.
Before it was just a kind of place holder.
Now it work in a different way.
When you try to sell your slave, people will approach you and give you a offer that you can either accept or refuse.
Before it was just a kind of place holder.
Now it work in a different way.
When you try to sell your slave, people will approach you and give you a offer that you can either accept or refuse.
Tuesday, December 22, 2015
Buying and selling slaves
Hi,
I kinda restarted working on XMaker,
still update will be less frequent that when I started, mostly due to work.
Anyway in the last post you saw a big image whith a lot of slaves.
That was the result of working on the new buy slave view.
Now when buying a slave you can select between one of the three random slaves presented.
I added a new step event which is actually used in the buy slave in slave market event.
<ShowSlaveShop>
<ShopName>Slave market</ShopName>
<TraineeGenerators>
<RandomTraineeGenerator/>
<RandomTraineeGenerator/>
<RandomTraineeGenerator/>
</TraineeGenerators>
</ShowSlaveShop>
This is the exerpt of xml that shows the slave market shop.
As you can see it takes a name to show and a list of trainee generators.
At the moment only RandomTraineeGenerator exist which create a random trainee, with all skills to 0.
In future I'd like to add parameters to it, plus other generator that will give a bigger control over the trainee generation.
This will let the creation of different slave shops with different kind of slaves being sold.
I kinda restarted working on XMaker,
still update will be less frequent that when I started, mostly due to work.
Anyway in the last post you saw a big image whith a lot of slaves.
That was the result of working on the new buy slave view.
Now when buying a slave you can select between one of the three random slaves presented.
I added a new step event which is actually used in the buy slave in slave market event.
<ShowSlaveShop>
<ShopName>Slave market</ShopName>
<TraineeGenerators>
<RandomTraineeGenerator/>
<RandomTraineeGenerator/>
<RandomTraineeGenerator/>
</TraineeGenerators>
</ShowSlaveShop>
This is the exerpt of xml that shows the slave market shop.
As you can see it takes a name to show and a list of trainee generators.
At the moment only RandomTraineeGenerator exist which create a random trainee, with all skills to 0.
In future I'd like to add parameters to it, plus other generator that will give a bigger control over the trainee generation.
This will let the creation of different slave shops with different kind of slaves being sold.
Saturday, October 17, 2015
Still alive
Hello,
small post in order to show that I'm not dead.
I completed MGS5 and I'm no longer addicted to it, I still have a lot going on at work so before end of month there won't be (probably) any update here.
After that I'll probably still have to work a little on RPGAutoCAT since I have still some item in the backlog.
After that I hope I'll be fully operative.
Anyway, I'm start missing XMaker, I fired it up the other day just to see where I was with development and I'd like to show you a "small" picture.
Hope it doesn't wreak havoc on the blog layout :P
small post in order to show that I'm not dead.
I completed MGS5 and I'm no longer addicted to it, I still have a lot going on at work so before end of month there won't be (probably) any update here.
After that I'll probably still have to work a little on RPGAutoCAT since I have still some item in the backlog.
After that I hope I'll be fully operative.
Anyway, I'm start missing XMaker, I fired it up the other day just to see where I was with development and I'd like to show you a "small" picture.
Hope it doesn't wreak havoc on the blog layout :P
Monday, September 14, 2015
Sorry
Sorry for the low attendance.
I'm in a procastination crysis right now, caused by a lot of work at my job joined with the bad idea of buying MGS 5 which is an awesome game so far.
I hope to exit this period of self destruction soon, so I can finalize work on RPG AutoCAT and then continue on games.
Also, I found a very nice hentai game that I'm sure you people will enjoy (if you haven't already), it might have a kinda high learn curve at first but after you undertand how it work it's a good game.
It's still in development but the release I played it's pretty stable and funny.
The game is Hentai High School +, the official forum along with the download link can be found here
See you later (hopefully not too much later).
I'm in a procastination crysis right now, caused by a lot of work at my job joined with the bad idea of buying MGS 5 which is an awesome game so far.
I hope to exit this period of self destruction soon, so I can finalize work on RPG AutoCAT and then continue on games.
Also, I found a very nice hentai game that I'm sure you people will enjoy (if you haven't already), it might have a kinda high learn curve at first but after you undertand how it work it's a good game.
It's still in development but the release I played it's pretty stable and funny.
The game is Hentai High School +, the official forum along with the download link can be found here
See you later (hopefully not too much later).
Subscribe to:
Posts (Atom)

