|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted June 11, 2010 05:19 PM |
|
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 05:21 PM |
|
|
Is an ERM scripter a programmer already? I wish to, but I doubt it
A long way to go...
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted June 11, 2010 05:33 PM |
|
|
The idea of programming is in your head, everything else is in books and manuals I know it, as mates from electronics may read books and stick together parts of others' code, but they don't quite know why and what for they do that.
____________
The future of Heroes 3 is here!
|
|
wog_edn
Promising
The Nothingness
|
posted June 11, 2010 06:18 PM |
|
|
How could I make an object ask a question where you have to write in an answer, like the sphinx does? Man it's hard to figure out...
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 06:26 PM |
|
|
I admit, it is impossible to figure out if you never open a wog map
A variable can hold as well a number or a text, store it, compare and deny access if variables are not identical.
There are thousand of those "answer correctly at the question" in the maps around. Just look for example at "Plutarch" script from "300". Try to modify the script and show here.
|
|
wog_edn
Promising
The Nothingness
|
posted June 11, 2010 06:28 PM |
|
|
Well, the trouble I am having when trying to understand the scripts in maps is that I have no idea of the meaning behind any of the numbers ... however much I try to figure it out, I think I've spent 3-4 hours today trying to work on this small script and so far I have one line ... which is copied, and barely changed and which I am not sure is even right
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 06:30 PM |
|
|
yes but the advantage in my maps (sorry many others) is that everything is explained at each line, so I can keep track if updating. Don't shoot at me, I am innocent and generous.
Assuming that z247 holds the correct answer:
!!OB35/39/1:R;**enable sign
!$OB91;
!!SG998:M?z1; **current sign text
!!VRz2:S^^;
!!VRz3:S^Enter the magic word^;
!!IF:D25/2/3/0/0/0/0/0/0/0/0/0/0/0/0/0;
!!IF:F25/0/0/0/0/1;
!!IF:E1/25;
!!VRz1:H5; **check if text entered, flag 5=1 if yes
!!SG998&5:M^%Z1^; **set new text if text was entered
!!IF&z1=z247:V216/1; **if text is same, set flag
!!IF&z1<>z247:M^Not strong enough at ancient greek, are you?^;
!!FU&z1<>z247:E;
**if you are here, means you answered correctly, so script the reward
What you want more?
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted June 11, 2010 06:32 PM |
|
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 06:34 PM |
|
|
Not true, scarcely explained and far from covering all possibilities (only one person worked on it, so...).
|
|
wog_edn
Promising
The Nothingness
|
posted June 11, 2010 06:34 PM |
|
|
Yeah I know ... but I am stupid and many numbers confuse me, so then even something as good as explanation at every line often ain't enough.
Take for example the latest script you did for me, Quest 1.
Quote: !?OB97/36/0&100; **Ananke
!!PO998:N?v1;
!!IF&v1=2/-104:M^Where is the Nymphe?^;
!!IF&v1=1:M^Thank you for bringing back the nymphe^;
!!FU&v1=1:E;
!!HE-1:N?v44;
I can understand as much as the first !?OB97/36/0 referring to the point where the object is placed. But then I have no idea what the &100 is about, or the entire next line, and so on...
That is probably why I have a hard time learning it too, I am not good at putting stuff together or taking them apart or anything like that. Hm.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 06:37 PM |
|
|
Try by logical steps: first read about flags, then about variables. Once you have an idea about flags, the heaven is open for you. &100 is a flag.
|
|
wog_edn
Promising
The Nothingness
|
posted June 11, 2010 06:38 PM |
|
|
Ah .. didn't even know there were anything called flags except those they wave around when celebrating stuff...
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 06:42 PM |
|
|
You can't script if you never open the ERM help. Try first to understand how to make object x to say you phrase A when first time visited and the phrase B if second time visited. This is the base before going on complex projects.
|
|
wog_edn
Promising
The Nothingness
|
posted June 11, 2010 06:44 PM |
|
|
Yep, that's mainly what I've been trying to figure out ... ERM Help haven't been closed since 12.50 this noon.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 06:46 PM |
|
|
Good luck, it is opened for me since 2008 and still have no clue about some things.
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted June 11, 2010 06:53 PM |
|
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 11, 2010 07:00 PM |
|
|
Yes but he does not want blessing, but artefact, he does not want curse, but be killed, so IF:X solves only a small part of the problem. The easiest one is to have a custom object.
|
|
wog_edn
Promising
The Nothingness
|
posted June 11, 2010 07:13 PM |
|
Edited by wog_edn at 19:28, 11 Jun 2010.
|
Two years... wow, and I was hoping to finish this thingy this year guess it's just to keep working!
Heh, looking at the script you edited in earlier in the page I see that I did wrong with the first receiver, heh. I used !? instead of !!.
Heyy, the Artemis statue ... I also have an Artemis quest
Nevermind, I simply don't get it ... however much I try. I have looked at the ERM-thread, trying to get even the simplest line in the ERM scripts ... but I just don't manage to understand it. As simple as that, doesn't seem like I have what it takes. Yeye.. tried at least!
____________
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted June 16, 2010 02:56 AM |
|
|
Is there any ERM command that makes a creature count as an upgrade (for example Rust Dragons are not an upgrade of any creature and also can't be upgraded further)?
The reason I ask is that I changed the 4 elemental upgrades (Ice, Magma etc) into other creatures and I don't want the 4 plain elemental (water, fire etc) to be upgraded into anything. Is that possible by ERM?
____________
Not idly do the leaves of Lorien fall.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 16, 2010 04:02 AM |
|
|
I see !!MA:U#/$ does that.
# = your monster ID.
$= monster ID after upgrade
$=1, use default upgrade
$=2, do not upgrade
|
|
|