Username:    Password:    Remember Me?         

Unit upgrades? - Reverie World Studios Forums

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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2009, 05:42 AM
OrcSlayer OrcSlayer is offline
Elven Sect:
Sorcerer
 
Join Date: Apr 2009
Location: Do you need to know?
Posts: 116
OrcSlayer has a default reputation
Default Unit upgrades?

If u have an archer can u upgrade him into a crossbowman or longbowman and the same with other units like swordsman to two-handers or spearman to pikes
__________________
[SIZE="3"][FONT="Garamond"]Give a man a fire and he is warm for a day, set a man on fire and he is warm for the rest of his life:D[/FONT][/SIZE]
[SIZE="4"][FONT="Palatino Linotype"]Join the Elves today and help us take over the world. pointy ears and elven fortress sold seperately[/FONT][/SIZE]
[IMG]http://img156.imageshack.us/img156/899/elvenub.png[/IMG]
Reply With Quote
  #2  
Old 04-25-2009, 01:30 PM
Mrdash Mrdash is offline
Elite Member
 
Join Date: Jul 2008
Location: Behind you...the guy w/ the 20 cal.
Posts: 278
Mrdash is someone to trust
Default

Dude you seriously need to search for these answers. This has been talked about already.

Go to "Search" and type in the subject you want to know about. If its been talked about (Which most things have) It will come up.
__________________
Reply With Quote
  #3  
Old 04-25-2009, 02:18 PM
Andy Joslin's Avatar
Andy Joslin Andy Joslin is offline
Reverie World Studios - Lead Gameplay Scripter
 
Join Date: May 2008
Posts: 495
Andy Joslin is just really niceAndy Joslin is just really niceAndy Joslin is just really nice
Default

No. Easily doable with a bit of scripting in your own scenario or unit, though.

Example:

Code:
var Button = Self:AddActioner("ToCrossbow")
Button.Details = "Upgrade to Crossbowman"
Button.ExtendedDetails = "200 Experience required."
Button.Icon = "Icons/crossbowman"
Button.Func=function (Self,MButton)
if Self.Experience>=200 then
  var Crossbow=Self:NewObjectRelative({0,0,0},0,0,0,0,"Men-Units-Crossbowman")
  ReplaceSelectedUnit(Self,Crossbow)
  Self:Remove()
elseif Self.Experience<200 then
  NotifyPlayer(200-Self.Experience.." experience required to upgrade to crossbow")
end
It's that easy! I just typed that up in a few minutes. The "Button.Func" runs when the button is pressed. You could have anything in the button's function.

This is but an example of how easy it will be for users to drastically change the game with a small bit of editing.
Reply With Quote
  #4  
Old 04-25-2009, 05:36 PM
TaTa456 TaTa456 is offline
Member
 
Join Date: Apr 2009
Posts: 37
TaTa456 has a default reputation
Default

sorry sir im sure its easy for you because its what you do, but i see that and i look like this dood then after that i look like
Reply With Quote
  #5  
Old 04-25-2009, 06:07 PM
Mrdash Mrdash is offline
Elite Member
 
Join Date: Jul 2008
Location: Behind you...the guy w/ the 20 cal.
Posts: 278
Mrdash is someone to trust
Default

Thats exactly what I was thinking. But as long as the tutorial explains all I need I'll be good.
__________________
Reply With Quote
  #6  
Old 04-26-2009, 05:15 AM
Puppeteer's Avatar
Puppeteer Puppeteer is offline
Reverie Super Moderator
 
Join Date: Sep 2007
Location: United Kingdom
Posts: 1,608
Puppeteer is just really nicePuppeteer is just really nicePuppeteer is just really nice
Default

I understand it, it's just a case of being able to come up with those kind of codes which will be difficult. Maybe experience with some .ini has helped
__________________
There is a wealth of old topics with useful and unique information - your question may already have been answered!
Reply With Quote
  #7  
Old 04-26-2009, 07:29 AM
raving raving is offline
Elite Member
 
Join Date: Jun 2008
Location: Belgium
Posts: 306
raving is someone to look uptoraving is someone to look upto
Default

i understand most of it, but dont expect me to find that on my own
__________________
Raving > Forum admins > you
;)
Reply With Quote
  #8  
Old 04-28-2009, 02:15 PM
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

LUA is quite easy and limitless when you get used to it, and we will have lots of reference for you and yea we do have a index for everything and such, might be confusing for the young people but its quite a basic language. They even refer some other easy languages with a quota of "Its as easy as LUA!"


if Self.Experience>=200 then -- if your unit has over 200 xp then this section runs
var Crossbow=Self:NewObjectRelative({0,0,0},0,0,0,0,"-Men-Units-Crossbowman") -- spawns a crossbowman on the same location and rotation of the parent unit that has the button
ReplaceSelectedUnit(Self,Crossbow) -- selects the old parent unit AND the new crossbowman.
Self:Remove() -- removes the parent unit that had the button. ( and unselects it)

elseif Self.Experience<200 then -- if your unit does not have over 200 xp then this section runs
NotifyPlayer(200-Self.Experience.." experience required to upgrade to crossbow") -- displays message saying you do not have enough and how much you need.
end -- ends the function.
__________________
Joseph B. Visscher - JBV3737

Bugs aren't the problem, figuring out how to fix them is.
Reply With Quote
  #9  
Old 04-28-2009, 04:44 PM
LiTos456's Avatar
LiTos456 LiTos456 is offline
Reverie Moderator - dofsource.com Ambassador
 
Join Date: Mar 2009
Location: Local Disk C:\
Posts: 1,675
LiTos456 has a spectacular aura aboutLiTos456 has a spectacular aura about
Default

Wow, nice script. So easy a caveman can do it.
__________________
ATTENTION NEW MEMBERS: Please read "Posting and YOU!" and the forum's "Code of Conduct" before making any posts.
Please read the official FAQ thread before asking any questions! If you don't find your answer use the search function!
If you have questions about the beta, please check the official beta questions thread before posting anything!
Don't bump old threads, don't spam, be nice and enjoy your stay.
Reply With Quote
  #10  
Old 04-29-2009, 10:25 AM
TaTa456 TaTa456 is offline
Member
 
Join Date: Apr 2009
Posts: 37
TaTa456 has a default reputation
Default

... ... ... guess im screwed and should go back to my cave
Reply With Quote
Reply


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 03:27 AM.

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

privacy policy   |   Copyright © Reverie World Studios INC.

Dawn of Fantasy 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.