changing graphics of object.

Discuss the creation and scripting of new fan-made games and mods for the Fallout series of games.
Post Reply
Jargo
Respected
Respected
Posts: 85
Joined: Fri Dec 27, 2002 6:17 pm
Location: FMC (Poland)
Contact:

changing graphics of object.

Post by Jargo »

Is there a procedure (or function) in fallout2 scripting langauge that change graphics of object (FrameID). :?:
User avatar
Red
Hero of the Glowing Lands
Hero of the Glowing Lands
Posts: 2085
Joined: Wed May 15, 2002 11:58 am
Location: Nowhere (important anyway)
Contact:

Post by Red »

FIC and FIME allows you to change the assignement of what a weapon looks like while you wear it, as well as the one it uses in the inventory.

To add new items though you'll need to add new FRMs (and there's plenty of FRM converters that work for those).
...
Jargo
Respected
Respected
Posts: 85
Joined: Fri Dec 27, 2002 6:17 pm
Location: FMC (Poland)
Contact:

Post by Jargo »

Thanx RED

But i need to change graphics of critter/object dynamically in the game(in *.ipp script file of this critter/object).
There is function:

Code: Select all

GetFrameID(obj);
 opcode:  
 8149
This function returns frameID of critter/object but it does not change frameID.

frameID looks like that:

Code: Select all

01000040
1 2 3 4

1- object type
2- moveID
3- weaponID
4- objectID(number of *.frm file)
Every object on map has frameID (in Dims mapper it is called "[0x20] Object FRM ID")

Maybe there is a procedure that change frameID of object.
Something like changeframeID(obj,frameID);

Sorry for bad english.
User avatar
Red
Hero of the Glowing Lands
Hero of the Glowing Lands
Posts: 2085
Joined: Wed May 15, 2002 11:58 am
Location: Nowhere (important anyway)
Contact:

Post by Red »

The only place in the code I saw a "change in graphics" was in the Den where Fred wins gambling and gives you money, however the trick the scripters used was change the critter's ID to another (just check the script out...)

Maybe you could do something like that instead?

The opcodes described are rather thoughrough. If you get the update last posted in the opcode thread of this forum and also hosted on the modding site of this update you'll find the latest opcodes and if "SetFrameID()" ins't in the list chances are the engine doesn't support such a command.

You MIGHT still have hope later on if BIS eventually decides to release the official compiler...
...
Jargo
Respected
Respected
Posts: 85
Joined: Fri Dec 27, 2002 6:17 pm
Location: FMC (Poland)
Contact:

Post by Jargo »

Biiiiiiig Thx Red
This trick from Fred script will do the work :P

Last opcodes in my Stdlib.ipp are from 30.10.2002 .

Maybe you know what RetF and RetN procedure is doing. :?:
User avatar
Red
Hero of the Glowing Lands
Hero of the Glowing Lands
Posts: 2085
Joined: Wed May 15, 2002 11:58 am
Location: Nowhere (important anyway)
Contact:

Post by Red »

Well, looking at the KA scripts, normally each function ends with a "return;", not with just a "end;"... RetF would suggest a "Return float" and N "return interger", and I know some code actually USES return values for functions... so you'll need to look for a function which returns a value to find an example using it though I'm not sure they'll use specifically RetF/RetN.
...
ABel
Scarf-wearing n00b
Scarf-wearing n00b
Posts: 33
Joined: Tue May 28, 2002 12:44 pm
Location: Krasnoyarsk, Russian Wasteland
Contact:

Post by ABel »

There was error in definition of RetF. It contained 80d0 instead of 800d.
I have not tested new version of RetF yet.

To return some result from your function you can use RetN, it is known to work properly.
Jargo
Respected
Respected
Posts: 85
Joined: Fri Dec 27, 2002 6:17 pm
Location: FMC (Poland)
Contact:

Post by Jargo »

Yes
It is working .
Our Host!
Post Reply