OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: RujiK on 12 Feb 2005, 06:41:03

Title: Defined Variable and .ext
Post by: RujiK on 12 Feb 2005, 06:41:03
Is it possible to use a Defined Varible in the description.ext file?
What I mean by this is to create a Rsctitle and have its text be name player, for instance, or have this defined somewhere else as in the init.sqs file so "Homies_name = name player" however I cannot get this to work in the .ext file.
And of course what makes this more annoying then normal scripting is every time you get it wrong it dumps you out of the game...

Any help would be greatly appreciated.
Title: Re:Defined Variable and .ext
Post by: General Barron on 12 Feb 2005, 09:22:39
I don't think there is any way to make cutresources dynamic like that.

However, you can set the text of a DIALOG dynamically after the mission starts. Luckily for you (since you know how rscs work), dialogs are very similar to cutresources. The only visible difference in-game is that a cursor appears during dialogs, and the player can close it using the esc key. Search the ed depot for vectorboson's dialog tut to learn how to make them, and then search for razorwings' dialog maker for a handy program that will save you lots of hassle.
Title: Re:Defined Variable and .ext
Post by: RujiK on 13 Feb 2005, 00:32:31
No, I knew about that and actually have it, however that won't work for this sadly...