Another problems with scripts...

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

Another problems with scripts...

Postby myst on Fri Nov 07, 2003 11:31 am

Hello, guys.
I have some problems with my teleport stone. Surely when I create case with arrays in gump i see such as "array index out of bounds" what isn't right???
Can you show a normal transport stone? I just want to see what I'm doing wrong...
I've posted three times such a question: "How can I change that my archery and other war skills are growing very slow?" I juct want my war skills to grow faster, because they are not growing at all(very very slow). How can I also make my archery to grow when I'm hitting the archery butte... It isn't growing. It just writes: "good shot". I just want my war skills to grow as the other skills..
There is another problem: Can you explain me how to create an item-giving stone? My scripting is very bad and I often make silly mistakes.

--- Another problem which doesn't connected with scripting: How can I add my verdata to another verdata(or foe e.x there is my verdata(where there are a lot of things) and verdata with few things, but not standard) How can I add the things from my verdata to that verdata(or another mul file). With what program?

Thanks...
myst
Newbie
 
Posts: 13
Joined: Fri Aug 22, 2003 11:50 am
Location: Russia, Moskow region, Sergiev Posad.

Postby myst on Tue Nov 11, 2003 12:32 pm

What? Nobody knows?... :'( :'( :'( That is very pity.... Can anybody help???
myst
Newbie
 
Posts: 13
Joined: Fri Aug 22, 2003 11:50 am
Location: Russia, Moskow region, Sergiev Posad.

Re: Another problems with scripts...

Postby Drocket on Tue Nov 11, 2003 7:10 pm

myst wrote: I have some problems with my teleport stone. Surely when I create case with arrays in gump i see such as "array index out of bounds" what isn't right???

This would be a whole lot easier to figure out if you'd post the script you're having problems with.

I've posted three times such a question: "How can I change that my archery and other war skills are growing very slow?"

In the latest version of the scripts, look in the file /pkg/combat/weapons/combat_attack_script_melee.src. In there, you'll see a few lines like:
QuickAwardRawAttributePoints (attacker, weaponattributeid, 30);
QuickAwardRawAttributePoints (attacker, ATTRIBUTEID_TACTICS, 15);
QuickAwardRawAttributePoints (defender, ATTRIBUTEID_TACTICS, 15);

The numbers (30, 15, 15) determine how fast those skills increase. To increase the rate of skillgain, replace those numbers with larger ones and recompile. You'll need to do the same thing in combat_attack_script_archery and combat_attack_script_wrestling. If you're using slightly older scripts, its the same basic thing, only the only file you need to modify is combat_attack_script (which has since been split into the previously mentioned mulitple files.)

How can I also make my archery to grow when I'm hitting the archery butte...

In /pkg/items/training/archer_butte.src, add the include file:
include "include/attributes";
towards the top. Then, down in the script, where you get the "good shot" message, add a line like:
AwardRawAttributePoints (character, ATTRIBUTEID_ARCHERY, rawpoints)
replacing 'rawpoints' with a number (same idea as the numbers in the combat script: higher numbers increase skills faster.)

There is another problem: Can you explain me how to create an item-giving stone? My scripting is very bad and I often make silly mistakes.

This is another 'more information needed' situation.

--- Another problem which doesn't connected with scripting: How can I add my verdata to another verdata(or foe e.x there is my verdata(where there are a lot of things) and verdata with few things, but not standard) How can I add the things from my verdata to that verdata(or another mul file). With what program?

As far as I know, there's no easy way to do this.
Drocket
Site Admin
 
Posts: 820
Joined: Mon Oct 07, 2002 2:54 am

Postby myst on Sun Jan 25, 2004 4:54 pm

Hello, guys.
Sorry but I was offline because of the provider& I was very busy then.
Drocket if surely, I can't do such a teleoprt stone script. Can you give me an easy scripts just to understand how it's doing? Or tell me what i need to do, I can't imagine how to create such a script. I've created more complicated scripts, but I realy doesn't know what to do. Don't laugh please :)
And for the item-giving stone I've created it. More read, more test & win :).
Please answer me...
myst
Newbie
 
Posts: 13
Joined: Fri Aug 22, 2003 11:50 am
Location: Russia, Moskow region, Sergiev Posad.

Postby myst on Fri Jan 30, 2004 5:15 pm

Sorry guys.
I have found my stupid mistake. All is working...
myst
Newbie
 
Posts: 13
Joined: Fri Aug 22, 2003 11:50 am
Location: Russia, Moskow region, Sergiev Posad.


Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron