logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,576
Total Threads: 8,658
Posts: 94,434

Administrators:
DeeZire, Redemption

There are currently 57 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Command and Conquer Editing > Red Alert 2 & Yuri's Revenge Editing » Need help with AITriggerTypes / firing through credits

Red Alert 2 & Yuri's Revenge Editing Discuss any modding related issues to do with Red Alert 2 and Yuri's Revenge here.

Reply
 
LinkBack Thread Tools
Old 04-05-2003, 02:21 PM   #1 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Hamburg, Germany
Posts: 2,208
Send a message via ICQ to Renegade
Default Need help with AITriggerTypes / firing through credits

Hi there...in the version of DeeZire's AI.ini guide I have (downloaded about three weeks ago) there's an interesting passage about AI Triggers firing through the amount of credits:
Quote:
E = AITriggerType

4 trigger based on number of Credits held by enemy (min quantity specified by parameter AABBCCDD)
for AABBCCDD it states:
Quote:
AABBCCDD-EEFFGGHH-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXX

· AABBCCDD holds a number (represented by 4 hex bytes, in reverse) for each subsequently specified condition that must be satisfied for the trigger to be fired.
I have two questions about this:
First, is this statement correct anyway? In an older Version of the guide, this parameter "E" is told to be a parameter for the direction from which the attack should take place, and since there are several Westwood-scripts having "E"="4" but "AABBCCDD"="00000000", it sounds a bit more logical...?

Second, the main, important question:
(represented by 4 hex bytes, in reverse)...this is what I need help with; how is this actually ment? If I want the trigger to fire at 10,000 credits, for example, what would I type? I have tried to convert numbers using a hex-editor, but the result was rather confusing:
- Simply writing into the hex-code would bring the result that 9999 credits would be the highest value that can be reached (39393939 in hex = 9999 in decimal)
- Using the base converter would create "typical" hex-code with letters in it
(example "unsigned long": 0000270f = 9999)

And even if I found out the correct conversion method, how would I "reverse" it?
(i.e. on which side would the number start and would I reverse every byte on it's own or simply flip the whole expression?)

Could somebody please help me with this? I have no idea what to do (or try)... :/
Renegade is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2003, 05:21 PM   #2 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: USA
Posts: 756
Default

It is rather hard to read that string isn't it?

Try this:
http://www.cannis.net/tutorials/ra2y...igger_viewer1/
FA2 should be able to create the string for you, but double-check what it has written in case it corrupts the trigger.
CannisRabidus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-06-2003, 08:47 AM   #3 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Between the heaven and hell
Posts: 630
Send a message via MSN to Psycho
Default


I managed ai triggers by cloning existing ones. First time they didnt work when i gave them changed hex id. Then i copy and paste ai trigger id's from dz's ai triggers and got some of them working.

Anyway, thx cannis for such a cool idea. cheers.
Psycho is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-06-2003, 11:23 AM   #4 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Hamburg, Germany
Posts: 2,208
Send a message via ICQ to Renegade
Default

Thanx very much guys, especially Cannis...seems like everythig works fine now...didn't now that FA2 as a complete AI-Editor inside...
Renegade is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2003, 01:04 PM   #5 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: in an aircraft carrier in the Asia and the Pacific waters
Posts: 638
Default

the AI taskforce can be created as you said, can be fired at credits.

it is like you will add and image of unloading image of a harvester (CMON and HORV) in an entry of w/c it will cause the Computer AI to create a taskforce..

so when a harvester unloads at a refinery, the AI will trigger a creation of a certain taskforce..
xcomet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2003, 11:59 AM   #6 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Hamburg, Germany
Posts: 2,208
Send a message via ICQ to Renegade
Default

Wow...that should give an active AI...
Thanx again...I'll try this, too...
Renegade is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Credits RhoDaZZ LOTR: Battle For Middle Earth I & II Editing 2 07-15-2005 06:34 AM
-= Need Help with AITriggerTypes =- Mercury Red Alert 2 & Yuri's Revenge Editing 2 08-31-2004 01:23 PM
Science Credits Kelso Generals & Zero Hour Editing 2 08-17-2004 09:52 PM


All times are GMT -4. The time now is 12:48 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.