获得高级隐藏所有广告
发表: 35   谁浏览过: 82 users

原发表

发表从 Garde, 04.09.2013 - 13:50
So, we all sometimes have an awesome idea for a Map/Scenario, yet find no feasible way to pull it off. For instance, taking a Unit, and transforming it into a city (I present to you, the MCV!), as an example. So, I propose a small panel for introducing new code into the for that map. It would be idiot-proof, and extremely simple; pseudo-code. To work properly, it would need a few necessary parameters and lists pre-loaded:

"Unit:" - Loads a list of all units in a specific Map. By typing the string name of a unit (EX: "Infantry") after "Unit:", it would load the unit, and become ready to be edited.

"Country:" - Essentially the same as "Unit:", but with every present country on a map (Obviously you couldn't make it turn into a unit, or many other functions that could be added to other lists).

"Capital:" - For capitals.

"City:" - For cities.

"Button:" - For buttons.

So, with these lists, we can load units/cities/etc into a block of code, and edit how they specifically work. Two ways would be with simple If/Else statements, and Loops.

if (Unit: "Stealth".attack == 8)
{
"Stealth".type == Land;
} else {
"Stealth.type == Air;

Basically, what I did there was tell the script "If the attack value of the unit "Stealth" is exactly 8, then it turns into a Land unit. If "Stealth" has an attack value that is not exactly 8, then it continues to be an Air unit. Also, you may have noticed that I used a ".type" function at the end of the "Unit:" list; this would serve as a way of declaring what we'd like to change/talk about. So, we want to change the type of a unit, we would use the ".type" function. There could also be other functions, like ".income", ".attack", ".other", etc.

Finally, we would need a way of, say, telling the game that we're specifically doing something, like pressing a hotkey, or displaying a tip-box.

".pressed" - Would be a function, stating that a button (loaded from "Buttons:") is currently pressed, or moreso, when a button is pressed, it would execute whatever code is attached.

".released" - A function that basically works the same was as ".pressed", only for when a button is released.

".window (X , Y), (c("Insert String text to display, or add other keys")/c)" - Would display a window with keys/text/states etc. in it.

".event" - When executed, would make whatever parameter specified appear in the game. Could be an easy shortcut instead of other codes, like manually changing a unit type to something after X minutes or whatever, or making caches of resources appear.

----

In conclusion, I'm sure all of you could think of more simple functions, variables, etc to make this work even better. I personally would like to see some simple pseudo-scripting like this, would make the game x2 more enjoyable, and expand AW's creativity that already defines it.
21.11.2013 - 01:17
Black Hole
账户已删除
作者: Guest, 16.11.2013 at 17:32

Add-on to this idea: Allow manipulation of the in-game soundtrack, and streaming of youtube audio as well. There could be could to detune videos, loop them, and put them into playlists for specific scenario sides, etc.
Someone had the same idea. Was put down since another fellow said it would lag AW too much.
载入中...
载入中...
21.11.2013 - 13:58
作者: Guest, 21.11.2013 at 01:17

作者: Guest, 16.11.2013 at 17:32

Add-on to this idea: Allow manipulation of the in-game soundtrack, and streaming of youtube audio as well. There could be could to detune videos, loop them, and put them into playlists for specific scenario sides, etc.
Someone had the same idea. Was put down since another fellow said it would lag AW too much.


I was referencing that thread, and the idea still exists through streaming.
载入中...
载入中...
21.11.2013 - 14:15
 Utah
作者: Guest, 21.11.2013 at 01:17

作者: Guest, 16.11.2013 at 17:32

Add-on to this idea: Allow manipulation of the in-game soundtrack, and streaming of youtube audio as well. There could be could to detune videos, loop them, and put them into playlists for specific scenario sides, etc.
Someone had the same idea. Was put down since another fellow said it would lag AW too much.


How many times do Gard and I have to say it...

We shall STREEEEEEAAAAM the videos.
----
The great questions of the day will not be settled by means of speeches and majority decisions but by iron and blood.
载入中...
载入中...
22.11.2013 - 01:21
Black Hole
账户已删除
作者: Utah, 21.11.2013 at 14:15

作者: Guest, 21.11.2013 at 01:17

作者: Guest, 16.11.2013 at 17:32

Add-on to this idea: Allow manipulation of the in-game soundtrack, and streaming of youtube audio as well. There could be could to detune videos, loop them, and put them into playlists for specific scenario sides, etc.
Someone had the same idea. Was put down since another fellow said it would lag AW too much.


How many times do Gard and I have to say it...

We shall STREEEEEEAAAAM the videos.
Okay, please don't get mad at me.
载入中...
载入中...
22.11.2013 - 06:30
 Utah
作者: Guest, 22.11.2013 at 01:21

作者: Utah, 21.11.2013 at 14:15

作者: Guest, 21.11.2013 at 01:17

作者: Guest, 16.11.2013 at 17:32

Add-on to this idea: Allow manipulation of the in-game soundtrack, and streaming of youtube audio as well. There could be could to detune videos, loop them, and put them into playlists for specific scenario sides, etc.
Someone had the same idea. Was put down since another fellow said it would lag AW too much.


How many times do Gard and I have to say it...

We shall STREEEEEEAAAAM the videos.
Okay, please don't get mad at me.


Too late, you have disappointed Utah.
----
The great questions of the day will not be settled by means of speeches and majority decisions but by iron and blood.
载入中...
载入中...
  • 1
  • 2
atWar

About Us
Contact

隐私条例 | 服务条例 | 横额 | Partners

Copyright © 2024 atWar. All rights reserved.

加入我们在

将游戏传播出去!