Page 1 of 1

Basic Questions

PostPosted: Mon Jun 19, 06 4:31 pm
by AgentSmyth
I am starting to understand Modding now...to a very basic extent...however I have more basic questions:

Code: Select all
state Activate()

What other states are there?

Code: Select all
local DeusExPlayer player;

What does local actually mean?

Code: Select all
Begin:

What does that do

Code: Select all
simulated function

What is a simulated function?

Code: Select all
var int healAmount;
var bool bNoPrintMustBeUsed;

I understand those are variables...but why do they not have any vaule?

I know this may get a bit annoying, but I'm desperate to learn...but can't understand it

Re: Basic Questions

PostPosted: Mon Jun 19, 06 5:32 pm
by Alex
Code: Select all
state Activate()

What other states are there?
Well... Unlimited ones. You can make your own states.

Code: Select all
local DeusExPlayer player;

What does local actually mean?
That the variable is only accessable within the function where the local variable is declared.

Code: Select all
Begin:

What does that do
Being used for a loop. It shows what part is part of the loop.
At least, this is what methinks. I don't use this 'a lot'.

Code: Select all
simulated function

What is a simulated function?
Click here, I'm too lazy.

Code: Select all
var int healAmount;
var bool bNoPrintMustBeUsed;

I understand those are variables...but why do they not have any vaule?
Eeh, they do :)
But variables must be defined before you can assign a value to them. If you just search the file for healAmount, you will find numerous results.

I know this may get a bit annoying, but I'm desperate to learn...but can't understand it.

It's not annoying at all :) I am happy that some of us DeusEx players are interested in the editing part.

PostPosted: Tue Jun 20, 06 5:35 pm
by AgentSmyth
I have found something else...

Code: Select all
function Frob(Actor Frobber, Inventory frobWith)
{
   Super.Frob(Frobber, frobWith);


What is frob?

PostPosted: Tue Jun 20, 06 6:05 pm
by DarkKnight
AgentSmyth wrote:I have found something else...

Code: Select all
function Frob(Actor Frobber, Inventory frobWith)
{
   Super.Frob(Frobber, frobWith);


What is frob?


"Frobbing" is the box you see when you walk up to an item, iirc.

Code: Select all
---                        ---
| Soda                       |
|                            |
|                            |
---                        ---


^

PostPosted: Tue Jun 20, 06 6:14 pm
by Alex
Frob = Right clicking on an item ;)

PostPosted: Tue Jun 20, 06 6:15 pm
by AgentSmyth
So then whats frobber and frobwith?

PostPosted: Tue Jun 20, 06 6:15 pm
by Alex
Frobber = Person who right clicks
FrobWith = the inventory the person who right clicks has.

PostPosted: Tue Jun 20, 06 6:19 pm
by AgentSmyth
Why are they in the brackets? Eg

Code: Select all
Function Blah(What does the stuff in here do)

PostPosted: Tue Jun 20, 06 6:32 pm
by Alex
AgentSmyth wrote:Why are they in the brackets? Eg

Code: Select all
Function Blah(What does the stuff in here do)


Those are variables. Also local.
You don't have to define them, since they already are.

So, if you call a function, you must/can (Depends if it has 'optional' in front of it), give variables with it.

PostPosted: Thu Jun 22, 06 2:23 pm
by AgentSmyth
Code: Select all
var travel

Whats travel?

(BTW thanks for the help with the other subjects) :lol:

PostPosted: Thu Jun 22, 06 2:48 pm
by Dae
"Travel" is another type of a variable, which keeps a variable during the game, even after switching maps. It's useful in single player.