COMBINATION TRIGGER.

Login to reply  Page: « < 1 of 1 > »
22 May 2010 - 19:212609
COMBINATION TRIGGER.
I need help to solve this error:

[ Trigger: Set - Armadura dos Novatos, Vnum 18600, type 1. Trying to access Global var list of void. Apparently this has not been set up! ]
in this trigger:



eval body %actor.eq(body)%
if %self.vnum(18601)%
if %body.vnum% == 18602
%echo% the number of the trigger is %body.vnum%
end
end


The problem is the error, cause the body vnum comer correctly

Thank You

Ps.: How do i user the [CODE] thing? i really don't know :P



Last edited by molotov (22 May 2010 - 19:21)
23 May 2010 - 01:242611
what is this trigger supposed to do? is it a mob, obj or room trig? Please paste the whole trigedit screen :)


23 May 2010 - 10:422612
COMBINATION TRIGGER.
Quote molotov:

Ps.: How do i user the [ CODE] thing? i really don't know :P


You put your code between code tags. Like [ code] ...your code... [ /code] (I've put a space after the starting bracket to avoid this being turned into a code block).


__________________
You know who I am.
23 May 2010 - 22:512613
is like this....
Name 'Set - Armadura dos Novatos',  VNum: [18600], RNum: [ 1052]
Trigger Intended Assignment: Objects
Trigger Type: Wear , Numeric Arg: 100, Arg list: *
Commands:

eval body %actor.eq(body)%
if %self.vnum(18601)%
  if %body.vnum% == 18602
    %echo% the number of the trigger is %body.vnum%
  end
end
	

eval weapon1 %actor.eq(wield)%
if %self.vnum(18602)%
  if %arma1.vnum% == 18601
    %echo% the number of the trigger is %arma1.vnum%
  end
end
i think the code thing din't work xD

The message is like this:


[ Trigger: Set - Armadura dos Novatos, Vnum 18600, type 1. Trying to access Global var list of void. Apparently this has not been set up! ]
Godrick empunha uma brilhante espada de novato.

That's what happens when the actor antemps to wear to 2o item.

bye.

Edit by Rumble: Not sure why it didn't work the first time.



Last edited by molotov (24 May 2010 - 02:55)
24 May 2010 - 15:062615
is like this....
Quote molotov:
eval weapon1 %actor.eq(wield)%
if %self.vnum(18602)%
  if %arma1.vnum% == 18601
    %echo% the number of the trigger is %arma1.vnum%
  end
end

Shouldn't those ALL be either weapon1 or arma1 ?


__________________
You know who I am.
26 May 2010 - 01:442621
Translate.
It was a mistake that occured when i were translating the trigger so u could understand better, but in the mud everything is ok. it should be: arma1 - arma1 or weapon1 - weapon1.

I know that and in the mud is really ok, but the trigger still doesn't stop returning the error message. I think i will try to make the trigger individually for each object. Ty.


29 May 2010 - 03:122645
[ Trigger: Set - Armadura dos Novatos, Vnum 18600, type 1. Trying to access Global var list of void. Apparently this has not been set up! ]

That means there's no script attached to Room 0.

Attach one to it (doesn't matter what one, a blank script is just fine actually.).

Also this should work:

Change:

eval body %actor.eq(body)% 
if %self.vnum(18601)% 
  if %body.vnum% == 18602 
    %echo% the number of the trigger is %body.vnum% 
  end 
end

to

set body %actor.eq(body)% 
if %body.vnum% <= 0
  halt
end
if %self.vnum(18601)% 
  if %body.vnum% == 18602 
    %echo% the number of the trigger is %body.vnum% 
  end 
end

As far as code tags not working:

They must be like so:

[ code ]
code here
[ / code ]

not:

[ code ]code here [ / code ]

Both tags require being on their own line for some reason on this POS forum software.


__________________

Dedicated DG Forum
Login to reply  Page: « < 1 of 1 > »