The Dink Network

Reply to Re: external question

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 31st 2002, 10:02 PM
wizardg.gif
Paul
Peasant He/Him United States
 
: main.c

: ------

: make_global_int ("&strength",1);

: make_global_int ("&defense",1);

: make_global_int ("&magic",1);

: item slayer

: ------

: void arm()

: {

:  external("stats","load_slayer");

: }

: stats.c

: ------

: void load_slayer()

: {

:  &strength = 4;

:  &defense = 4;

:  &magic = 4;

: }

: strength goes to 4, nothing else. the only thing i could guess is that start-1 could call the arm after getting the item before some other crucial command, but i can re-equip the item in-game and still no luck. i even tried making another item set &defense and &magic to 3 in arm and the load_slayer still doesnt get it to 4, it stays at 3. try this for yourself.

You're not going to like this...

I tried it and it works perfectly.

But why not just drop the external command and put the stat adjustments right in the item script, it might not be quite as neat, but it should work fine. (And if it doesn't, you'll know something's more basic is wrong.)