Author Topic: 2 questions  (Read 2842 times)

2 questions
« on: September 08, 2016, 08:39:52 pm »
How add turnbase possibility to particular map? for example mariposa - entrance map always in RT as it is now, but I want add inner dungeon maps in both modes TB/RT depends on player option in config.

How change start time (day, month, year)?
« Last Edit: September 08, 2016, 08:42:09 pm by Ranger101 »

Offline Wipe

  • Rotator
  • Random is god
Re: 2 questions
« Reply #1 on: September 08, 2016, 09:34:03 pm »
How add turnbase possibility to particular map?
void Map::SetTurnBasedAvailabilty(bool enable);
If map is instanced, call it after creating location (see encounters code); if permanent (read: created via GenerateWorld.cfg) use map init script.

How change start time (day, month, year)?
Just check how get_start_time bind is set in scripts.cfg~
Games are meant to be created, not played...

JovankaB

  • Guest
Re: 2 questions
« Reply #2 on: September 09, 2016, 01:44:41 pm »
void Map::SetTurnBasedAvailabilty(bool enable);
If map is instanced, call it after creating location

If it's based on player setting, I would also update it when the player who "owns" the location enters it.

Because one day a player takes the quest and another day he changes the RT/TB setting, and 3 days later he goes to the location and then he is surprised why no TB ;_; (or the other way around). From the player's perspective it makes no sense, because it's not obvious when/how the mode is set.

Also there may be "oh shit this quest will take too long in TB" moment. So why not let players change it - less work for GMs.

I wanted to do this in 2238, but some technical issues stopped me, because I wanted to base it on the leader of group, and it was impossible to tell who was the worldmap leader after the location was entered. But it was a mistake anyway, it should be only the location's owner who should be able to change it.
« Last Edit: September 09, 2016, 02:56:25 pm by JovankaB »

Re: 2 questions
« Reply #3 on: September 10, 2016, 10:15:17 am »
Thanks Wipe, it's working.