Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Currently available MegaGlest gameservers are listed on
Play.MG
.
Home
Help
Search
Login
Register
MegaGlest Forum
»
Modding and game content creation
»
Mods
»
How to place units custom places
Pages: [
1
]
Print
Author
Topic: How to place units custom places (Read 1224 times)
Exazzo
Guest
How to place units custom places
«
on:
22 October 2009, 09:05:14 »
is there a way to place units whereever u like in the editor.
this is needed couse we want to make attacking units (that looks like trees) attack when trying to harvest them .
thx
kasper
Logged
-Archmage-
Moderator
Dragon
Posts: 5,887
Make it so.
Re: How to place units custom places
«
Reply #1 on:
22 October 2009, 11:30:22 »
Well, not in the map editor, but you can Lua code some scenarios, you might be able to code it so that when the worker starts chopping wood the computer replaces the tree with an attack unit that looks like a tree.
Logged
Egypt Remastered!
Proof: Owner of glest@mail.com
Loronal
Guest
Re: How to place units custom places
«
Reply #2 on:
23 October 2009, 00:08:14 »
Sorry arch buts that's not the case. okay if you're in lua or moon scripting you would write this
for 1,6 do
then here you list the unit the team and he start location
end
his won't be exact but check out the XML of the scenario called storm-something it's scripted also check out the tutorials
Logged
wciow
Behemoth
Posts: 968
Re: How to place units custom places
«
Reply #3 on:
23 October 2009, 17:26:26 »
GAE has much expanded Lua scripting capabilities which allow you to place units exactly on the map rather than by start locations.
There is also a position checking system (not sure if its been compiled in the latest binaries yet).
Combining these with the <resource-harvested> event will allow an enemy tree unit to be created when a player unit starts cutting the specified trees.
Unfortunately there is currently no Lua commands to effect the world objects so the original tree will remain in place and the enemy tree units will simply spawn near it.
For more info please see this thread:
https://forum.megaglest.org/index.php?topic=4556.0
Logged
Check out my new Goblin faction -
https://forum.megaglest.org/index.php?topic=9658.0
Loronal
Guest
Re: How to place units custom places
«
Reply #4 on:
24 October 2009, 20:09:41 »
What if the resource harvested only effects one player than you could have a invisible wisp that instantly chops the tree dumb idea but maybe it will work
Logged
Print
Pages: [
1
]
MegaGlest Forum
»
Modding and game content creation
»
Mods
»
How to place units custom places
anything