Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Hello every1! i'm new in here
Thread: Hello every1! i'm new in here
Maccabi_Tel_...
Maccabi_Tel_Aviv

Tavern Dweller
posted February 24, 2003 08:34 PM

Hello every1! i'm new in here

Just wanted to say hello, i'm from israel by the way.
I'm working on the ERM script, reading bout it a bit, im beginning to understand it, but somehow i've tried to make not visited to visited building, i didnt really suceed, i used a 1,0 flag and probably not too well, so, 2 questions:
how do i do if a flag is 0 then do stuff (i used the &-30 for example after the trigger's head but dunno.
and some1 can post a script whereas every hero who go into a building would get a text and then it will be visited and he wont be able to use it again, only another hero.
thank you!
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
goodpig
goodpig


Adventuring Hero
The King of Pork!!!
posted February 28, 2003 10:11 PM

I can't help you but welcome to the board!
____________
Qui n'a plus qu'un moment a vivre N'a plus rien a dissimuler.
Atys

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Gangrail
Gangrail


Promising
Famous Hero
Dead Man
posted March 02, 2003 01:21 PM

Welcome to the board and as I stated in your other room this is a question Fnord would be able to help you with.  I will let him know about this thread as well.  If you have anymore WoG questions please put WoG in front of it so he will know where to look  As soon as I am done learning it from him I will also be looking in here for erm and other WoG questions.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
ByteBandit
ByteBandit


Promising
Famous Hero
Soul Merchant
posted March 03, 2003 11:09 AM
Edited By: ByteBandit on 3 Mar 2003

Quote:
Just wanted to say hello, i'm from israel by the way.
I'm working on the ERM script, reading bout it a bit, im beginning to understand it, but somehow i've tried to make not visited to visited building, i didnt really suceed, i used a 1,0 flag and probably not too well, so, 2 questions:
how do i do if a flag is 0 then do stuff (i used the &-30 for example after the trigger's head but dunno.
and some1 can post a script whereas every hero who go into a building would get a text and then it will be visited and he wont be able to use it again, only another hero.
thank you!


I don't understand the question too well. Do you want a dialog set up so that any hero can visit the object, or do you want just one hero? Something like !?OB 63/##; maybe?
All dialogs sre the !!IF command. You choose which dialog you want.
____________
The Archives

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Fnord
Fnord


Promising
Famous Hero
posted March 03, 2003 09:29 PM bonus applied.

Quote:
Just wanted to say hello, i'm from israel by the way.
I'm working on the ERM script, reading bout it a bit, im beginning to understand it, but somehow i've tried to make not visited to visited building, i didnt really suceed, i used a 1,0 flag and probably not too well, so, 2 questions:
how do i do if a flag is 0 then do stuff (i used the &-30 for example after the trigger's head but dunno.
and some1 can post a script whereas every hero who go into a building would get a text and then it will be visited and he wont be able to use it again, only another hero.
thank you!


Yes, to check for a flag being 0 (false), use &-30. If you don't want a particular trigger to activate at all, that would be the place to put it, otherwise, you can put it on individual receivers following the trigger, or perhaps on a function call, depending on the complexity of the script and how you want it to work.

If you have an object with the trigger square at x=6/y=6/level=0 (surface), you could use a script like the following example to display a special message the first time the object is visited but never after (we'll use Flag 50 in this example, but any flag not used by another script will work fine -- avoid using flag 1 for anything permanent, however, and it's often best to keep flags 2-10 for tempory use only as well).

ZVSE

!?OB6/6/0;
!!IF&-50:M^Welcome to this enchanted place!^;
!!IF:V50/1; [Set flag 50 to true]


If you want to have it depend on each hero, you can use a hero variable instead of a flag. Each hero has 100 unique variables call w variables. You set the current one with the IF:W command. So, let's use a hero's w5 variable here:

ZVSE

!?OB6/6/0;
!!IF:W-1;  [Set w variable for current hero]
!!IF&w5=0:M^Welcome to this enchanted place!^;
!!VRw5:S1; [Set hero's w5 variable to 1]

If you wanted to actually disable a standard object, you can use the OB:S command and OB:R to enable it again.

ZVSE

!?OB6/6/0;
!!IF:W-1;  [Set w variable for current hero]
!!OBv998/v999/v1000:R; [(Re)enable object]
!!OBv998/v999/v1000&w5=1:S; [Disable object if this hero has already visited it]
!!IF&w5=0:M^Welcome to this enchanted place!^;
!!VRw5:S1; [Set hero's w5 variable to 1]


____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Lord_Woock
Lord_Woock


Honorable
Undefeatable Hero
Daddy Cool with a $90 smile
posted March 03, 2003 10:07 PM

Is it me or does ERM code always look like a huge pile of gibberish at first?
____________
Yolk and God bless.
---
My buddy's doing a webcomic and would certainly appreciate it if you checked it out!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Hexa
Hexa


Responsible
Legendary Hero
posted March 03, 2003 10:28 PM

Lol glad that all doesn;t make sense to me!@
____________
If you want to realize your dreams >>> you have to wake up!@

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Gangrail
Gangrail


Promising
Famous Hero
Dead Man
posted March 03, 2003 10:33 PM

LOL yes it does look confusing and I still don't know much about it.  Actually very little right now.  But once you have someone show you what each thing does it starts to really make sense.  Maybe once I get some good knowledge on how to do the basic ERM scripting I will start posting tutorials on my site.  But this will not happen till I can actually do the stuff on my own with no help from anyone.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Maccabi_Tel_...
Maccabi_Tel_Aviv

Tavern Dweller
posted March 03, 2003 10:41 PM
Edited by Cepheus at 17:29, 23 Jul 2011.

hehe

thanks all, really at start i didnt understand much bout all those lines but really once u go to details u start understanding it ,
its like basic language like C that i was studying in school with all those flags.

---

Moderator note: This thread has been inactive for two years or longer, and has been archived (closed) to prevent necro-posting. If you wish to revive the topic, send a message to Cepheus or create a new thread in its place. Thank you.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0361 seconds