FOnline Development > Questions and Answers

2 questions

(1/1)

Ranger101:
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)?

Wipe:

--- Quote from: Ranger101 on September 08, 2016, 08:39:52 pm ---How add turnbase possibility to particular map?

--- End quote ---
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.


--- Quote from: Ranger101 on September 08, 2016, 08:39:52 pm ---How change start time (day, month, year)?

--- End quote ---
Just check how get_start_time bind is set in scripts.cfg~

JovankaB:

--- Quote from: Wipe on September 08, 2016, 09:34:03 pm ---void Map::SetTurnBasedAvailabilty(bool enable);
If map is instanced, call it after creating location

--- End quote ---

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.

Ranger101:
Thanks Wipe, it's working.

Navigation

[0] Message Index

Go to full version