|
Thread: Hello every1! i'm new in here | |
|
Maccabi_Tel_...
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!
____________
|
|
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
|
|
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.
____________
|
|
ByteBandit
Promising
Famous Hero
Soul Merchant
|
posted March 03, 2003 11:09 AM |
|
|
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.
____________
|
|
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]
____________
|
|
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!
|
|
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!@
|
|
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.
____________
|
|
Maccabi_Tel_...
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.
____________
|
|
|