 |
Forum Info
|
 |
Forum Members: 18,643
Total Threads: 8,744
Posts: 95,520
Administrators:
DeeZire, Redemption
There are currently 31 users online.
|
 |
Partner Links
|
 |
 |
Advertisements
|
 |
|
| Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here. |
08-04-2006, 09:42 AM
|
#1 (permalink)
|
|
Senior Member
Join Date: Jun 2003
Location: Germany
Posts: 363
|
Upgrade by status?
Hi there,
I wonder if there's a possibility to upgrade a unit since it got a specific status, e.g. STATUS_RIDER1 by a weapon or something.
Of course only with coding, not any scripting!
|
|
|
08-04-2006, 02:10 PM
|
#2 (permalink)
|
|
Senior Member
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 375
|
Have you tried using the GrantUpgradeCreate module with RequiredStatus= set?
|
|
|
08-04-2006, 04:19 PM
|
#3 (permalink)
|
|
Senior Member
Join Date: Jun 2003
Location: Germany
Posts: 363
|
yes. RequiredStatus doesn't work with GrantUpgradeCreate :/
|
|
|
08-06-2006, 12:40 PM
|
#4 (permalink)
|
|
Senior Member
Join Date: Jun 2003
Location: Germany
Posts: 363
|
any idea?
|
|
|
08-07-2006, 07:23 PM
|
#5 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
|
You can enforce a unit to switch to a status by using a status weapon, like the Avenger aimer.
Interestingly, if the unit targeted already has that status, then the status is shut off.
Some status's cause actual logical changes, others just trigger art conditions, Im sorry to say but the STATUS_RIDER# status' do nothing but change the model.
All-in-all, despite how interesting some of the status effects are, none have a practical use, at least from my point of view.
|
|
|
08-08-2006, 04:58 AM
|
#6 (permalink)
|
|
Senior Member
Join Date: Jun 2003
Location: Germany
Posts: 363
|
Well, actually the STATUS_RIDER# states together with RiderChangeContain module of the CombatBike cause a change of status, art, weapon, locomotor and the unit inside the transport.
So my tests were successful... but only with the help of pure upgrades linked to command buttons. Since I have such a status weapon like the avenger with DamageType = STATUS_RIDER# then nothing seems to be possible to upgrade the other units when they got the status of the weapon. And as long as this doesn't work, they actually aren't allowed to use the STATUS_RIDER# states with all the changes of RiderChangeContain module. That's the main problem... the next would be to destroy the upgrade since the status weapon doesn't fire any more and all other units must come back to default state.
|
|
|
08-10-2006, 12:40 PM
|
#7 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
|
Specifically its not the status_rider state that causes the change in commandset, weapon, etc., its the ridercontainmodule.
So if you invoke that status on a unit, seperately, nothing will happen except, at best, a visual change.
|
|
|
08-10-2006, 01:33 PM
|
#8 (permalink)
|
|
Senior Member
Join Date: Jun 2003
Location: Germany
Posts: 363
|
yeah I know. But what can I do now?
|
|
|
08-13-2006, 08:12 PM
|
#9 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
|
Well, one way you could do it is through my tutorial here...
http://www.cncseries.com/content/?523
Essentially it allows you to replace a unit with another unit, transfering the energy and veterency through using a weapon.
The disadvantage to doing it this way is that it counts as a kill, which means either you stick with an extra kill being counted or you completely ommit that unit from the score figures, also, you don't retain the selection of the unit which gets replaced. Also, the effect doesn't fair well with transport units as you can tell.
Nonetheless, when done properly the swap is seemless and has endless possibilities, e.g. as in my tutorial the trigger weapon can be self inflicting, allowing for a deploy unit effect, or the weapon can be triggered by another unit or by a special power.
|
|
|
08-14-2006, 02:48 PM
|
#10 (permalink)
|
|
Senior Member
Join Date: Jun 2003
Location: Germany
Posts: 363
|
I thought about this method, but I hesitated beacuse of these disadvantage you listed.
And there's one big additional problem when I'd use it: unfortunately, I need this object to be limited (MaxSimultaneousOfType = 1), because they're special units. So, whenever I click the button to toggle between original and replaced unit this will count as a loss of this object and the button to build it becomes free. This is a high risk for allowing cheating :/
damn.
Is there a way around, so that I can use ReplaceObjectUpgrade, though? This would help me a lot.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 06:21 PM.
|