Current time: 23.11.2024, 04:22 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Ваши вопросы по ERM-скриптам
Author Message
gamecreator Offline

Posts: 7107
Post: #4021

Короче я не заметил там в исходниках. Из этого индекса можно узнать тип и подтип объекта без проблем. Не надо искать никакой максимум.

Valery, change your code to this (starting on line 1031):
Also concerning your problem with v1 earlier: never store anything in this variable unless you know what you are doing. In ERA it can be overwritten at any moment.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
13.05.2016 18:16
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #4022

fantastic work, thanks!

Now just tell me how to solve this (event vanish upon visit), using the new code, and I think the feature is ready:

!$OB26&1000;
!!SN:W^events_display^/?y1;
!!FU&y1<1:E;
!!SN:E7416831/1/v998/v999/v1000;
14.05.2016 00:04
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #4023

Maybe I should have separated the coordinate part. Originally I was thinking about rewriting your DO loop with SN:G and moving it inside the function, but it didn't happen.
This should work:
So then you would call FU7800701 to convert type/subtype to id and pass it and coordinates to FU7800702.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
14.05.2016 00:15
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #4024

This seems to work, correct?

!$OB26&1000;
!!FU7800701:P63/27/?v5;
!!FU7800702:Pv5/v998/v999/v1000;

Now what shall I do, let flag 1000 or remove it? Not sure what happens when AI walks into an event only human can trigger. Any suggestions?
(This post was last modified: 14.05.2016 00:48 by Valery.)
14.05.2016 00:40
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #4025

Check if the event is still there maybe?


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
14.05.2016 00:52
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #4026

tested and is ok, AI does not delete the event if scripted for human. Thank you very much for solution, will make a video about then publish the mod.
14.05.2016 00:59
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #4027

gamecreator, will that event script work with any type/subtype of object? Let's say I want to bring some graphic by key push (without yellow square and passable) and I use it within another type/subtype, do I need anything else?
22.05.2016 02:49
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #4028

Valery, please update mode Hero Advanced Level Up. Some changes for usability.


game bug fixes extended.dll || My Plugins || My GitHub
22.05.2016 04:08
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #4029

The new shows 1.0 version, the previous was 1.1. 147

Do I move screens from previous or graphics changed? Also not sure what to do, as is packed with russian winrar so install may look weird for english readers. Should I keep the two versions on wakeofgods.org, russian then english? I can do that and add a little "ru" and "en" in the description.
22.05.2016 14:37
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #4030

(22.05.2016 02:49)Valery Wrote:  gamecreator, will that event script work with any type/subtype of object? Let's say I want to bring some graphic by key push (without yellow square and passable) and I use it within another type/subtype, do I need anything else?
It should work. Just translate type/subtype to id and pass it to the removal function.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
22.05.2016 16:02
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #4031

I forgot about the problems with fonts.
I myself will prepare and lay out the finished version.


game bug fixes extended.dll || My Plugins || My GitHub
22.05.2016 16:20
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #4032

gamecreator, thanks, will try.

Igrik, ok, but don't forget the json file + one screen for view, since the new mod manager let us do that. In json it should be at "cheats" panel for fast search (I guess thats ok for you?)
22.05.2016 16:24
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #4033

(22.05.2016 16:24)Valery Wrote:  Igrik, ok, but don't forget the json file + one screen for view, since the new mod manager let us do that. In json it should be at "cheats" panel for fast search (I guess thats ok for you?)
Done. (download)
Better leave my link
Code:
changed:
- deleted ERM_hooker
- double-click on the selected skill
- correct tooltip description for secondary skills


game bug fixes extended.dll || My Plugins || My GitHub
22.05.2016 17:10
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #4034

I got two examples from a guy working on heroes code and I may ask if any of you could make a plugin about, please?

Is about possibility to view mage guild spells even when you don't have book or gold. If any is interested for making plugin, I am grateful.
(This post was last modified: 12.06.2016 01:52 by Valery.)
12.06.2016 01:51
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #4035

This plugin will not work on the ERA II
Addresses in the pictures with the displacement -400h.
bug: he removes 500 gold
Code:
; for his exe file
;5CE683 EB65
;5CE6CD 741D
;5CE6F1 0000 ; fix gold -500

; for ERA II
5cea83 EB65
5CEACD 741d
5CEAF1 0000 ; fix gold -500


game bug fixes extended.dll || My Plugins || My GitHub
12.06.2016 02:39
Visit this user's website Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group