|
#21
|
||||
|
||||
|
Quote:
Quote:
Completely easy, just get something to trigger a value, and if that value becomes true it can load a new map, or, well you can attach it or put it anywhere. and do anything with it, you can also make auto save triggers. For a custom Campaign the user would need to place the maps all in the right place to what the map's file locations requirements are. For this case, thats say that is 'C:\Program Files\Dawn of Fantasy\Scenario\UsermadeCampaign\...' Code:
--Search radius, it searches around an object to detect other unit types.
-- after they are found it sets somevalue to true
local somevalue=false
Trigger.DetectHillTaken=function ()
for CurUnit in Objects.HillMarker: SearchCircle(1100,1,"Men-Units-Halberdier","Men-Units-Maceman","Men-Units-Peasant","Men-Units-Knight Mounted","Men-Units-Swordsman","Men-Units-Archer") do
if CurUnit:Alive() then
somevalue=true
Trigger.HillIsTaken=true
end
end
end
--if somevalue is true, load new map
Trigger.HillIsTaken=function ()
if somevalue==true then
LoadScenario("Scenario\\UsermadeCampaign\\AwesomeCampaignPath2.dofscn")
end
DisableSelf()
end
Trigger.HillIsTaken=false
Could easily make a sort of Steaming map Campaign. LUA scripting is pretty much limitless.
__________________
Joseph B. Visscher - JBV3737 Bugs aren't the problem, figuring out how to fix them is. |
|
#22
|
|||
|
|||
|
Huh what a complex sistem ... where are good old days of age of empires where even dumb ppl as me can fast make playable map =P.
|
|
#23
|
|||
|
|||
|
That's what's going to be so awesome here, they're going to have basic and advanced tools for the map editor. This means people who aren't as good at it can still make awesome maps, and if there's a few things they arent able to do they can just have someone more experienced add the final touches. Teamwork on map making always ends up awesome anyways. I remember in Warcraft 3 once I accidentally made 1 tiny piece of code wrong that crashed the game for everyone in it as soon as it opened :P. But I also refined a lot of maps others made. Either way, i'd think everyone will be able to make a good map if they put a little effort in.
|
|
#24
|
||||
|
||||
|
Not for scripting in lua, we'll have information about everything, but the creator will need to write his own or copy paste from other sources, this also means you can indeed have a database of scripts that can easily be added to your maps. Seen as it is lua it is utterly limitless in things you can do, unlike other trigger scripts you get on games such as age of empires.
__________________
Joseph B. Visscher - JBV3737 Bugs aren't the problem, figuring out how to fix them is. |
|
#25
|
||||
|
||||
|
We will implement a basic GUI-scripting if time permits. We definitely want to.
|
|
#26
|
||||
|
||||
|
Seems like the kind of thing that could be easily patched or implemented as a plug-in, even if you didn't make the release date.
__________________
---------------------------------------------- www.RTSCommunity.com ---------------------------------------------- |
|
#27
|
|||
|
|||
|
Those scripts can be put to a wiki page from where we can after copy them, right ?
|
|
#28
|
||||
|
||||
|
Quote:
__________________
---------------------------------------------- www.RTSCommunity.com ---------------------------------------------- |
|
#29
|
|||
|
|||
|
This is going to be very awesome. I just hope that we can get a lot of custom maps (by that I mean different than the same custom maps we play in every other rts that people clone). Not that the classics aren't great :P.
|
|
#30
|
||||
|
||||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|