Basic Questions

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Basic Questions

Postby AgentSmyth » Mon Jun 19, 06 4:31 pm

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
<font color="red" size="1">Who Said Life Was Fair</font>
Image
User avatar
AgentSmyth
Regular
 
Posts: 396
Joined: Fri Oct 01, 04 6:05 pm
Location: On my Computer

Re: Basic Questions

Postby Alex » Mon Jun 19, 06 5:32 pm

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.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby AgentSmyth » Tue Jun 20, 06 5:35 pm

I have found something else...

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


What is frob?
<font color="red" size="1">Who Said Life Was Fair</font>
Image
User avatar
AgentSmyth
Regular
 
Posts: 396
Joined: Fri Oct 01, 04 6:05 pm
Location: On my Computer

Postby DarkKnight » Tue Jun 20, 06 6:05 pm

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                       |
|                            |
|                            |
---                        ---


^
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby Alex » Tue Jun 20, 06 6:14 pm

Frob = Right clicking on an item ;)
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby AgentSmyth » Tue Jun 20, 06 6:15 pm

So then whats frobber and frobwith?
<font color="red" size="1">Who Said Life Was Fair</font>
Image
User avatar
AgentSmyth
Regular
 
Posts: 396
Joined: Fri Oct 01, 04 6:05 pm
Location: On my Computer

Postby Alex » Tue Jun 20, 06 6:15 pm

Frobber = Person who right clicks
FrobWith = the inventory the person who right clicks has.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby AgentSmyth » Tue Jun 20, 06 6:19 pm

Why are they in the brackets? Eg

Code: Select all
Function Blah(What does the stuff in here do)
<font color="red" size="1">Who Said Life Was Fair</font>
Image
User avatar
AgentSmyth
Regular
 
Posts: 396
Joined: Fri Oct 01, 04 6:05 pm
Location: On my Computer

Postby Alex » Tue Jun 20, 06 6:32 pm

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.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby AgentSmyth » Thu Jun 22, 06 2:23 pm

Code: Select all
var travel

Whats travel?

(BTW thanks for the help with the other subjects) :lol:
<font color="red" size="1">Who Said Life Was Fair</font>
Image
User avatar
AgentSmyth
Regular
 
Posts: 396
Joined: Fri Oct 01, 04 6:05 pm
Location: On my Computer

Postby Dae » Thu Jun 22, 06 2:48 pm

"Travel" is another type of a variable, which keeps a variable during the game, even after switching maps. It's useful in single player.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 59 guests