Welcome to the Builder Academy

Question Zedit Glitch I've ran into

More
19 Jul 2012 23:54 #404 by Vatiken
Easiest way around this is to use a dg_script instead. It's far more customizable anyway.

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

More
20 Jul 2012 10:55 #406 by Liko
Replied by Liko on topic Re: Zedit Glitch I've ran into

Vatiken wrote: Easiest way around this is to use a dg_script instead. It's far more customizable anyway.


Example for one somewhere?

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
20 Jul 2012 13:26 #407 by Liko
Replied by Liko on topic Re: Zedit Glitch I've ran into

Liko wrote:

Vatiken wrote: Easiest way around this is to use a dg_script instead. It's far more customizable anyway.


Example for one somewhere?

Code:
set chance1 %random.100% set chance2 %random.100% if %chance% >= 60 %load% obj 201 done if %chance2% >= 60 %load% obj 202 done end

There is something simple I wrote. Am I doing it the right way?

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
20 Jul 2012 14:26 #408 by Liko
Replied by Liko on topic Re: Zedit Glitch I've ran into

Liko wrote:

Liko wrote:

Vatiken wrote: Easiest way around this is to use a dg_script instead. It's far more customizable anyway.


Example for one somewhere?

Code:
set chance1 %random.100% set chance2 %random.100% if %chance% >= 60 %load% obj 201 done if %chance2% >= 60 %load% obj 202 done end

There is something simple I wrote. Am I doing it the right way?

Code:
set chance1 %random.100% set chance2 %random.100% set chance3 %random.100% set chance4 %random.100% set chance5 %random.100% set chance6 %random.100% if %chance% >= 40 %load% obj 201 done if %chance2% >= 40 %load% obj 202 done if %chance3% >= 70 %load% obj 204 done if %chance4% <= 5 %load% obj 206 done if %chance5% <= 3 %load% obj 205 done if %chance6% <= 1 %load% obj 203 done end

There is what the final dg_script came out like. Tell me what you think of it.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
20 Jul 2012 17:35 #410 by Rumble
Good job, two simple examples by Shamra I found below.
Code:
Name: 'Percent load chance', VNum: [ 8955], RNum: [ 1176] Trigger Intended Assignment: Rooms Trigger Type: Zone Reset , Numeric Arg: 100, Arg list: None Commands: eval rand %random.5% if %rand% == 1 %load% obj 8900 end Name: 'percent drop example', VNum: [ 8956], RNum: [ 1177] Trigger Intended Assignment: Mobiles Trigger Type: Death , Numeric Arg: 75, Arg list: None Commands: %echo% %self.name% cackles gleefully as he destroys his powerful weapon before death washes over him. %purge% (put a very specific name of the object here that is unique, for example xxxdemonswordxxx)

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

More
21 Jul 2012 03:19 #413 by Vatiken
Keep in mind that an "if/else" statement in dg_scripts is closed with an "end", not a "done". "done" is used to close out a "switch", or a "while".

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds