A Random RPG Adventure

Discussion of all aspects of multiplayer development: unit balancing, map development, server development, and so forth.

Moderator: Forum Moderators

Post Reply
Spirit_of_Currents
Posts: 160
Joined: April 26th, 2014, 4:44 pm

Re: A Random RPG Adventure

Post by Spirit_of_Currents »

If your every unit is on the same side, you have two new tactical possibilities:
1. You can move your units in any order.
2. You can move a unit before previous unit has finished its turn.
There are very much electrical currents in my brain.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Spirit_of_Currents wrote:If your every unit is on the same side, you have two new tactical possibilities:
1. You can move your units in any order.
2. You can move a unit before previous unit has finished its turn.
Are you trying to say that if different sides are being played by the same player he should be able to use as if they were all in the same side? :hmm:
Spirit_of_Currents
Posts: 160
Joined: April 26th, 2014, 4:44 pm

Re: A Random RPG Adventure

Post by Spirit_of_Currents »

Assuming that there is only one player, I guess it's easier for both the coder and the player if there are no several sides controlled by him or her, only one side, when compared to several sides that can be used as if units were in the same side.
There are very much electrical currents in my brain.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Spirit_of_Currents wrote:Assuming that there is only one player, I guess it's easier for both the coder and the player if there are no several sides controlled by him or her, only one side, when compared to several sides that can be used as if units were in the same side.
While I believe it is possible do that, I think it would actually be lengthy to do so, and honestly, not worth it. :lol:
shrieker1
Posts: 21
Joined: August 7th, 2017, 5:53 pm

Re: A Random RPG Adventure

Post by shrieker1 »

PapaSmurfReloaded wrote:
Spirit_of_Currents wrote:Assuming that there is only one player, I guess it's easier for both the coder and the player if there are no several sides controlled by him or her, only one side, when compared to several sides that can be used as if units were in the same side.
While I believe it is possible do that, I think it would actually be lengthy to do so, and honestly, not worth it. :lol:
Problem would be more like how to make it possible to give control of a shared side unit to an observer. In many long games people may need to leave temporary or permanently from the game. Then it often requires one player to play multiple sides until there is observer to take over a side.

Following untested lua code should give an idea how to do it. You could write same in wml too. It uses side turn end to make sure that no unit gains or loses a turn when it is moved to a different side.

Code: Select all

[event]
  name=side turn end
  
  [lua]
    code=<<

local function move_units_to_first_side()
  local name = wesnoth.sides[wesnoth.current.side].name
  -- Find if there is a side controlled by this player coming before us
  for s=1,wesnoth.current.side-1,1 do
    -- This may require some more complex equality check. There is possibility that Wesnoth appends side number to the name which would require this check to first remove the side number from the end
    if name == wesnoth.sides[s].name then
      -- Found a side before current side -> make current null controlled
      wesnoth.sides[wesnoth.current.side].controller = "null"
      -- move units to first side that is smaller number but controlled by this player
      local units = wesnoth.get_units({side=wesnoth.current.side})
      for i, u in ipairs(units) do
         u.side = s
      end
      -- No more sides to check
      break
    end
  end
end

move_units_to_first_side()
>>
  [/lua]
[/event]
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

New Version! A new map has been realeased, called "The Northern Wildlands".
Enjoy :whistle:
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

BIG UPDATE:
Reformulated the Rest System, now it's called Party Health, and it includes Hunger, Thirst and Fatigue. Players will have to eat and drink on top of resting, in order to carry on with their adventures.
Fixed Cooking professions.
Now menues have captions.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Update:
The DM may now manipulate units experience points.
Minor fixes within the add-on code.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Added some videos to the first post in any case anybody wants to see.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Update:
The DM may now create up to 10 custom items for players to have in their inventory, merely of cosmetic value.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Update! I am happy to announce the release of a new map called "The Lost Island".
It's on the add-on server!
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Update!
A new map has been released, called "Faewind City".
XP to level up reduced from 200 to 150 in all maps.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Update:
DM is now Side 1, and Heroes Leader(White) is side 2.
Players are now 3, 4, 5, 6.
Minor changes to DM Menu.
Minor changes to the urban map(now called Ravenburgh City).

Given that this one is a major rework of the add-on, it is possible that that there could be bugs (I double checked and did not find any).
If anybody spots one please report it.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Update:
The first release of the new map "The Desert of Doom" is out.
User avatar
PapaSmurfReloaded
Posts: 820
Joined: November 17th, 2007, 1:10 pm
Location: Argentina

Re: A Random RPG Adventure

Post by PapaSmurfReloaded »

Tiny Update: Improved the Players and DM Manual.
Added some magical items to inventory the DM may give to players.
Now there is a new melee attack animation that transform user into a wolf.
Post Reply