Username:    Password:    Remember Me?         

Map Editor - Reverie World Studios Forums

Go Back   Reverie World Studios Forums > Kingdom Wars > Main Square
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #20  
Old 06-21-2009, 11:37 AM
Joseph Visscher's Avatar
Joseph Visscher Joseph Visscher is offline
Reverie World Studios - Lead Level Designer, Senior Gameplay Programmer, 3D Animator, 3D-2D Artist.
 
Join Date: May 2007
Location: Canada B.C.
Posts: 1,279
Joseph Visscher has extremely good reputationJoseph Visscher has extremely good reputationJoseph Visscher has extremely good reputationJoseph Visscher has extremely good reputation
Default

Quote:
Originally Posted by Aametherar View Post
I just hope they release the editor a bit before the game and let the community get started, there's work to be done!
No, because you wont be able to test your maps without the game.


Quote:
Originally Posted by Aametherar View Post
Another thing I think would be great is a simple way to do full on campaign mode custom maps without the usual string 1 map after another, but creating it to mirror the actual campaign, with possible deviations and different paths. I.E. you beat a map 1 way it goes to next map, but if you beat it another it brings you to a different one. Campaigns just own!

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
Not only can you just load a new map, but you can save your units and load them into the new map with the same X,Y,Z positions relative to that map*, then offset teleport them to there exact posistions where they where when you loaded the new map; or use the search circle object to create a table to offset the positions of the units relative to the search object, then transfer that table to the new search object in the new map to find the new real world positions based off the offset positions for each unit.
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.
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -6. The time now is 02:49 PM.

ESRB Rated T
US/CANADA
PEGI 16
EUROPE
USK 16
GERMANY

privacy policy   |   Copyright © Reverie World Studios INC.

Kingdom Wars and Reverie World Studios are trademarks of Reverie World Studios, Inc. Developed by Reverie World Studios, inc. All Rights Reserved. All other trademarks are property of their respective owners.
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.