We need to modify "spawn" function

You think of something which could be added to TA3D post here! /
Vous pensez à quelque chose que l'on pourrait ajouter à TA3D, postez ici!
Post Reply
User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

We need to modify "spawn" function

Post by Balthazar » Sat Dec 23, 2006 2:22 pm

I suggest to modify console command "spawn X" to create X allied units. Well, not modify but add new command like "spawn NAME" of unit, so the player can spawn certain unit by it`s name.
It can be VERY usefull function when you need to check some kind of unit, or maybe a new mod unit.
If it`s not very hard to do - we must add this opportunity! And maybe a little more - "spawn NAME SIDE" - so we could spawn not only ally units!

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Dec 23, 2006 2:32 pm

ok I going to modify the command this way:
spawn NAME_OF_UNIT PLAYER_ID NB_UNIT

if NAME_OF_UNIT = any then unit type is generated randomly (like now)
PLAYER_ID is the ID of the owner of the unit (currently 0 is the player and 1 the computer)
NB_UNIT = how many units you want
=>;-D Penguin Powered

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Dec 23, 2006 2:48 pm

ok that's done with a few things:
_when you omit the second parameter, it creates a unit for current player
_when you omit the third parameter it creates only one unit
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sat Dec 23, 2006 5:18 pm

Perfect! Pokemon - gonna catch the all :)

And Zuzuf!!! In the name of GOD - make INGLISH the default language, and translate all text into inglish! I like french, but I don`t know it at all :D

And one more thing - I`ve asked early - ADD UNIT INFO, like HP, Dmg, speed somewhere in the gui (I suggest at the bottom near eye (maybe change eye to text ->locked, free).

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Dec 23, 2006 5:55 pm

when you press F1 and have one unit selected, its info shows on screen, you can't not see it, it's in the middle of the screen.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sat Dec 23, 2006 6:06 pm

I mean - this info should be shown always for the unit, that is currenly selected or unit under mouse pointer. For example put this info near health bar of unit (to the right from it). It should update when unit recieve damage or something like that. And add experience variable for units :)

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Dec 23, 2006 6:19 pm

currently, the code that make units fire doesn't care about accuracy so an experience variable wouldn't have any effect until this code is improved so we'll have to wait a bit before having units with experience (maybe for 0.2.5).

Now I can't show as much information as when you press F1 near the health bar but maybe HP and a few other things.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sat Dec 23, 2006 6:43 pm

Yeah :) That should be cool!

And I`ll wait while TA3D be in inglish, so the screenshots looks much more readable :)

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Dec 23, 2006 7:15 pm

you want screenshots in english, I can do that, just have to switch the language in the options.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sat Dec 23, 2006 7:55 pm

Yes :) I`ll wait for them.
And Zuzuf, interface must be in inglish too :roll:

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sat Dec 23, 2006 8:58 pm

1. Fixed 2-line Menu.
2. Added new Spawn _ _ _ command. (Is "spawn_enemy n" command still work?)
3. Added F1 - info menu function in Game Guide section.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun Dec 24, 2006 12:08 pm

the spawn_enemy doesn't work any more, it's replaced with the "standard" spawn command:
spawn UNIT_NAME PLAYER_ID NB_UNITS

just set PLAYER_ID to something not 0 if you want to add these units for an enemy (WARNING: setting this to an ID that doesn't exist may result in a crash!!)
currently available IDs are: 0 (you) and 1(computer) because it's the 2 players in the game.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sun Dec 24, 2006 1:26 pm

Fixed. I`ll send you Help files in a hour.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests