Aller au contenu

Photo

Script in ap level


  • Veuillez vous connecter pour répondre
11 réponses à ce sujet

#1
Vetiver

Vetiver
  • Members
  • 16 messages
People plz - Create script Which will watch level change and add new points spell(instead of 1"Origin" - 2"New") and attribute(instead of 3"Origin" - 5"New") for Level ap

And it is good if it could be adjusted Personal options  

#2
0x30A88

0x30A88
  • Members
  • 1 081 messages
Can you type that out much clearer. Overriding the level-up event is possible afaik.

#3
Vetiver

Vetiver
  • Members
  • 16 messages
I want a script which gives 2 points for level and 5 attributes for level   (IN DAO)

You script master? pliz help me! I already search 4 months for the person which can to make such script

Modifié par Vetiver, 11 août 2011 - 08:18 .


#4
0x30A88

0x30A88
  • Members
  • 1 081 messages
I am not in any way experienced in extending the main game. There's no proper scripting reference and two named constants for the level-up events. RW_GrantHeroBonusAbilityPoint with the event object seems to be the way, but there are many functions I'm not sure where works.

I am still looking for the main script to handle this event, perhaps if I find it you can go in there and just change the numbers.

EDIT: The EVENT_TYPE_PLAYERLEVELUP is handled by the sys_chargen and despite its name, is controlling wther you click that little + in the portrait.
eThe EVENT_TYPE_PLAYER_LEVELUP is the one you would override then, but I can't find the main script for that one and thus am not sure how it's done.

EDIT2: RW_GrantHeroBonusAbilityPoint() seems to be the one. I found it in sys_rewards.h. If you could capture the EVENT_TYPE_PLAYER_LEVELUP and use that method like this. I really hope you can use it in a module_core.

RW_GrantHeroBonusAbilityPoint(1, 1, GetEventObejct(ev, 0);
RW_GrantHeroBonusAbilityPoint(4, 2, GetEventObject(ev, 0);

Modifié par Gisle Aune, 11 août 2011 - 09:36 .


#5
Vetiver

Vetiver
  • Members
  • 16 messages
Try to make simply a script which watches level ap of the player and already then adds necessary points

Nevertheless thanks for the additional information

Modifié par Vetiver, 11 août 2011 - 09:35 .


#6
0x30A88

0x30A88
  • Members
  • 1 081 messages
I would suggest someone who knew the game code better than me for this. Also, testing it is a tedious effort.

I thought people were complaining about the game being too easy as it is...

It's been 4 months you say, have you never thought of learning it yourself?

Modifié par Gisle Aune, 11 août 2011 - 09:55 .


#7
Vetiver

Vetiver
  • Members
  • 16 messages
The problem not in ease - Is mods adding new classes and abelites requiring more points

The subject is still actual as there is no script

Yes.. But scripts difficult enough employment, I tried - There is no result

Modifié par Vetiver, 11 août 2011 - 10:16 .


#8
Vetiver

Vetiver
  • Members
  • 16 messages
And than you job to work with "ncs" files?

#9
CID-78

CID-78
  • Members
  • 1 124 messages
you can't work with .ncs files, (They are already compiled you need the core .nss files to change the chargen process)

#10
CID-78

CID-78
  • Members
  • 1 124 messages
what you need to do is to have a good look at sys_chargen.nss and the files it includes, when you have found the values you want to edit you must compile it and include the compiled verison in your addin.

#11
Vetiver

Vetiver
  • Members
  • 16 messages
Who create separate script check ap level and add point ability without file game edit(New script)

Modifié par Vetiver, 14 août 2011 - 12:14 .


#12
Vetiver

Vetiver
  • Members
  • 16 messages
How have activate modified
scripts "sys_autoscale_h.nss" I put script to packages/core/override
And on advice "CID-78" put "creature_core.ncs" for new module name is "More_P - Probably incorrectly edit as i badly know toolset"

Change to script do not work

Modifié par Vetiver, 20 août 2011 - 04:54 .